Skip to content

Commit

Permalink
Update usage of DestinationConnection in function copy_by_key_interval
Browse files Browse the repository at this point in the history
  • Loading branch information
augusto-herrmann committed Jul 16, 2024
1 parent 8015c4e commit 297052e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fastetl/custom_functions/copy_db_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ def copy_by_key_interval(
table=destination_table.split(".")[1],
)
insert, truncate = build_dest_sqls(
destination=DestinationConnection(
destination=DestinationConnection(dict(
conn_id=destination_conn_id,
schema=destination_table.split(".")[0],
table=destination_table.split(".")[1],
),
)),
column_list=col_list,
wildcard_symbol=wildcard_symbol,
)
Expand Down Expand Up @@ -344,11 +344,11 @@ def copy_by_limit_offset(
table=destination_table.split(".")[1],
)
insert, truncate = build_dest_sqls(
destination=DestinationConnection(
destination=DestinationConnection(dict(
conn_id=destination_conn_id,
schema=destination_table.split(".")[0],
table=destination_table.split(".")[1],
),
)),
column_list=col_list,
wildcard_symbol="?",
)
Expand Down

0 comments on commit 297052e

Please sign in to comment.