Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 18, 2023
1 parent f77faa1 commit 4b1894e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions target_snowflake/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def _get_merge_from_stage_statement( # noqa: ANN202, PLR0913
dedup = f"QUALIFY ROW_NUMBER() OVER (PARTITION BY {dedup_cols} ORDER BY SEQ8() DESC) = 1"
return (
text(
f"merge into {full_table_name} d using " # noqa: S608, ISC003
f"merge into {full_table_name} d using " # noqa: ISC003
+ f"(select {json_casting_selects} from '@~/target-snowflake/{sync_id}'" # noqa: S608
+ f"(file_format => {file_format}) {dedup}) s "
+ f"on {join_expr} "
Expand All @@ -407,7 +407,7 @@ def _get_copy_statement(self, full_table_name, schema, sync_id, file_format): #
)
return (
text(
f"copy into {full_table_name} {col_alias_selects} from " # noqa: S608, ISC003
f"copy into {full_table_name} {col_alias_selects} from " # noqa: ISC003
+ f"(select {json_casting_selects} from " # noqa: S608
+ f"'@~/target-snowflake/{sync_id}')"
+ f"file_format = (format_name='{file_format}')",
Expand Down

0 comments on commit 4b1894e

Please sign in to comment.