snowflake.snowpark.WhenMatchedClause¶
- class snowflake.snowpark.WhenMatchedClause(condition: Optional[Column] = None)[source]¶
Bases:
objectA matched clause for the
Table.merge()action. It matches all remaining rows in the targetTablethat satisfyjoin_exprwhile also satisfyingcondition, if it is provided. You can usefunctions.when_matched()to instantiate this class.- Parameters:
condition – An optional
Columnobject representing the specified condition. For example,col("a") == 1.
Methods
delete()Defines a delete action for the matched clause and returns an updated
WhenMatchedClausewith the new delete action added.update(assignments)Defines an update action for the matched clause and returns an updated
WhenMatchedClausewith the new update action added.