snowflake.snowpark.functions.when_matched¶
- snowflake.snowpark.functions.when_matched(condition: Optional[Column] = None) WhenMatchedClause[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/functions.py#L6982-L7005)¶
Specifies a matched clause for the
Table.mergeaction. SeeWhenMatchedClausefor details.Convenience function to create a new WhenMatchedClause instance which is required together with an action when merging a Snowpark table with a Snowpark DataFrame (see snowflake.snowpark.Table.merge for more details).
Example: