diff --git a/sdks/python/apache_beam/io/gcp/bigquery_tools.py b/sdks/python/apache_beam/io/gcp/bigquery_tools.py index cbd50249950..bc601b56772 100644 --- a/sdks/python/apache_beam/io/gcp/bigquery_tools.py +++ b/sdks/python/apache_beam/io/gcp/bigquery_tools.py @@ -352,7 +352,7 @@ class BigQueryWrapper(object): HISTOGRAM_METRIC_LOGGER = MetricLogger() def __init__(self, client=None, temp_dataset_id=None, temp_table_ref=None, project_id = None): - self.client = client or BigQueryWrapper._bigquery_client(PipelineOptions(project = project_id)) + self.client = client or BigQueryWrapper._bigquery_client(PipelineOptions()) self.gcp_bq_client = client or gcp_bigquery.Client( client_info=ClientInfo( user_agent="apache-beam-%s" % apache_beam.__version__)) diff --git a/sdks/python/apache_beam/yaml/integration_tests.py b/sdks/python/apache_beam/yaml/integration_tests.py index 08533e2ccfd..72b3918195d 100644 --- a/sdks/python/apache_beam/yaml/integration_tests.py +++ b/sdks/python/apache_beam/yaml/integration_tests.py @@ -65,7 +65,7 @@ def temp_spanner_table(project, prefix='temp_spanner_db_'): @contextlib.contextmanager def temp_bigquery_table(project, prefix='yaml_bq_it_'): - bigquery_client = BigQueryWrapper(project_id = "apache-beam-testing") + bigquery_client = BigQueryWrapper() dataset_id = '%s_%s' % (prefix, uuid.uuid4().hex) bigquery_client.get_or_create_dataset(project, dataset_id) logging.info("Created dataset %s in project %s", dataset_id, project)