File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 12
12
from snowflake .sqlalchemy import URL
13
13
from snowflake .sqlalchemy .base import SnowflakeIdentifierPreparer
14
14
from snowflake .sqlalchemy .snowdialect import SnowflakeDialect
15
- from sqlalchemy .sql import text
15
+ from sqlalchemy .sql import quoted_name , text
16
16
17
17
from target_snowflake .snowflake_types import NUMBER , TIMESTAMP_NTZ , VARIANT
18
18
@@ -388,7 +388,7 @@ def _get_merge_from_stage_statement( # noqa: ANN202
388
388
dedup = f"QUALIFY ROW_NUMBER() OVER (PARTITION BY { dedup_cols } ORDER BY SEQ8() DESC) = 1"
389
389
return (
390
390
text (
391
- f"merge into { full_table_name } d using " # noqa: ISC003
391
+ f"merge into { quoted_name ( full_table_name , quote = True ) } d using " # noqa: ISC003
392
392
+ f"(select { json_casting_selects } from '@~/target-snowflake/{ sync_id } '" # noqa: S608
393
393
+ f"(file_format => { file_format } ) { dedup } ) s "
394
394
+ f"on { join_expr } "
You can’t perform that action at this time.
0 commit comments