mik-laj commented on a change in pull request #7192: [AIRFLOW-XXXX] Fix
BigQuery example DAG
URL: https://github.com/apache/airflow/pull/7192#discussion_r373861614
##########
File path: airflow/gcp/example_dags/example_bigquery.py
##########
@@ -201,10 +201,10 @@
create_view = BigQueryCreateEmptyTableOperator(
task_id="create_view",
- dataset_id=LOCATION_DATASET_NAME,
+ dataset_id=DATASET_NAME,
table_id="test_view",
view={
- "query": "SELECT * FROM `{}.test_table`".format(DATASET_NAME),
+ "query": f"SELECT * FROM `{PROJECT_ID}.{DATASET_NAME}.test_table`",
Review comment:
I checked it. We should use legacy SQL by default. Unfortunately, this has
been changed for unknown reasons. This change is not backward compatible and we
should restore the original behavior. If we want this behavior, then we should
introduce a transition period, which introduced warnings, because this is a
very important service.
----------------------------------------------------------------
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