Skip to content

Commit

Permalink
fix: remove hardcoding of table
Browse files Browse the repository at this point in the history
  • Loading branch information
utsav14nov committed Jul 3, 2024
1 parent cf9ca0d commit e2c2fb2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion task/bq2bq/executor/bumblebee/transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ def transform(self):
self.dry_run,
self.execution_time)

self.bigquery_service.execute_query("truncate table `gtfndata-integration.playground.replace_table_target`;")
truncate_query = "truncate table `{}`;".format(self.task_config.destination_table)

self.bigquery_service.execute_query(truncate_query)
task.execute()


Expand Down

0 comments on commit e2c2fb2

Please sign in to comment.