nuclearpinguin commented on a change in pull request #7475: [AIRFLOW-6855]:
Escape project_dataset_table in SQL query in gcs to bq …
URL: https://github.com/apache/airflow/pull/7475#discussion_r382904627
##########
File path: airflow/providers/google/cloud/operators/gcs_to_bigquery.py
##########
@@ -298,10 +298,15 @@ def execute(self, context):
cluster_fields=self.cluster_fields,
encryption_configuration=self.encryption_configuration)
+ if bq_hook.use_legacy_sql:
+ escaped_table_name =
'[{}]'.format(self.destination_project_dataset_table)
+ else:
+ escaped_table_name =
'`{}`'.format(self.destination_project_dataset_table)
Review comment:
Should we use f-strings?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services