turbaszek commented on a change in pull request #8377: Use python client in BQ
hook create_empty_table method
URL: https://github.com/apache/airflow/pull/8377#discussion_r410229210
##########
File path: airflow/providers/google/cloud/example_dags/example_bigquery.py
##########
@@ -219,10 +219,10 @@
# [START howto_operator_bigquery_create_view]
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:
As you can see line below:
```
"useLegacySql": False
```
----------------------------------------------------------------
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