[
https://issues.apache.org/jira/browse/AIRFLOW-4897?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16895084#comment-16895084
]
Kaxil Naik edited comment on AIRFLOW-4897 at 7/29/19 9:03 AM:
--------------------------------------------------------------
[~ryan.yuan] Yes, but we should add a deprecation warning and add a to-do to
rename it to `dataset` (or `dataset_resource`) in the next major release.
was (Author: kaxilnaik):
[~ryan.yuan] Yes, but we should add a deprecation warning and add a to-do to
rename it to `dataset` in the next major release.
> Location not used to create empty dataset by bigquery_hook cursor
> -----------------------------------------------------------------
>
> Key: AIRFLOW-4897
> URL: https://issues.apache.org/jira/browse/AIRFLOW-4897
> Project: Apache Airflow
> Issue Type: Bug
> Components: hooks
> Affects Versions: 1.10.2, 1.10.3
> Environment: composer-1.7.1-airflow-1.10.2
> Python 3
> Reporter: Benjamin
> Priority: Major
>
> {code:java}
> bq_cursor = BigQueryHook(use_legacy_sql=False,
> bigquery_conn_id='google_cloud_default',
> location=EU").get_conn().cursor()
> print(f'Location Cursor : {bq_cursor.location}') // EU is printed
> bq_cursor.create_empty_dataset(dataset_id, project_id){code}
> 'EU' is printed but my empty dataset has been created in location : 'US'.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)