mtagle 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_r384798107
 
 

 ##########
 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:
   I didn't know about f-strings before, but sure!

----------------------------------------------------------------
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

Reply via email to