Skip to content

Commit

Permalink
Fix wrong merge SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
pslavov committed Aug 10, 2023
1 parent ad3d068 commit 4ecce36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target_snowflake/file_formats/csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def create_merge_sql(table_name: str,
return f"MERGE INTO {table_name} t USING (" \
f"SELECT {p_source_columns} " \
f"FROM '@{stage_name}/{s3_prefix}' " \
f"(FILE_FORMAT => '{file_format_name}'), PATTERN => '{s3_key}') s " \
f"(FILE_FORMAT => '{file_format_name}', PATTERN => '{s3_key}') ) s " \
f"ON {pk_merge_condition} " \
f"WHEN MATCHED THEN UPDATE SET {p_update} " \
"WHEN NOT MATCHED THEN " \
Expand Down

0 comments on commit 4ecce36

Please sign in to comment.