Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
keegansmith21 authored and jdddog committed Feb 13, 2024
1 parent 78caeb2 commit 69af56f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oaebu_workflows/onix_workflow/onix_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ def copy_latest_export_tables(
# Copy all of the tables
for table in matched_tables:
table_id = bq_table_id(project_id, from_dataset, table)
table_name = bq_table_id_parts(table_id)[3] # Drop the date from the table for copied table
table_name = bq_table_id_parts(table_id)[2] # Drop the date from the table for copied table
unsharded_id = bq_table_id(project_id, to_dataset, table_name)
bq_copy_table(src_table_id=table_id, dst_table_id=unsharded_id, write_disposition="WRITE_TRUNCATE")

Expand Down

0 comments on commit 69af56f

Please sign in to comment.