File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 1010
1111from pandas import DataFrame as PandasDataFrame
1212
13+ from snowflake .snowpark .table import WhenMatchedClause , WhenNotMatchedClause
1314from snowflake .snowpark .window import Window , WindowRelativePosition
1415import snowflake .snowpark ._internal .proto .generated .ast_pb2 as proto
1516
@@ -536,14 +537,21 @@ def decode_join_type(self, join_type: proto.SpJoinType) -> str:
536537 "Unknown join type: %s" % join_type .WhichOneof ("variant" )
537538 )
538539
539- def decode_matched_clause (self , matched_clause : proto .SpMatchedClause ):
540+ def decode_matched_clause (
541+ self , matched_clause : proto .SpMatchedClause
542+ ) -> Union [WhenMatchedClause , WhenNotMatchedClause ]:
540543 """
541544 Decode a matched clause expression to get the clause.
542545
543546 Parameters
544547 ----------
545548 matched_clause : proto.SpMatchedClause
546549 The expression to decode.
550+
551+ Returns
552+ -------
553+ WhenMatchedClause or WhenNotMatchedClause
554+ The decoded clause.
547555 """
548556 match matched_clause .WhichOneof ("variant" ):
549557 case "sp_merge_delete_when_matched_clause" :
You can’t perform that action at this time.
0 commit comments