mohannadbanayosi commented on issue #5923: [AIRFLOW-5318] Option to specify location of the new BQ dataset URL: https://github.com/apache/airflow/pull/5923#issuecomment-526197734 Yes the location along with other options like the description and tags can be set using the [dataset_reference](https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets#resource). ``` BigQueryCreateEmptyDatasetOperator( task_id='create_dataset', project_id='project-id', dataset_id='new_dataset_id', dataset_reference={'location': 'EU'}, dag=dag ) ``` I agree it is not a functionality improvements but rather just to make it easier. Nonetheless, the location is slightly more important (in my opinion) because the default if not provided is `US` and can not be set on project level. So it has to always be explicitly added. ``` BigQueryCreateEmptyDatasetOperator( task_id='create_dataset', project_id='project-id', dataset_id='new_dataset_id', location='EU', dag=dag ) ``` @ryanyuan
---------------------------------------------------------------- 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
