From 2219886dfc14716cebbeb6c7c5ee098ffdd33f7c Mon Sep 17 00:00:00 2001 From: Grant Timmerman Date: Fri, 14 Jun 2019 11:44:12 -0700 Subject: [PATCH 1/2] b/116968956 Remove location since it is now auto-detected. --- bigquery/docs/snippets.py | 1 - 1 file changed, 1 deletion(-) diff --git a/bigquery/docs/snippets.py b/bigquery/docs/snippets.py index b11dccfbfd09..26f8630410cf 100644 --- a/bigquery/docs/snippets.py +++ b/bigquery/docs/snippets.py @@ -990,7 +990,6 @@ def test_load_table_from_file(client, to_delete): job = client.load_table_from_file( source_file, table_ref, - location="US", # Must match the destination dataset location. job_config=job_config, ) # API request From 1d67a8f99dd8020ad827253b174e8155c264c0df Mon Sep 17 00:00:00 2001 From: Grant Timmerman Date: Tue, 18 Jun 2019 12:56:18 -0700 Subject: [PATCH 2/2] Update snippets.py --- bigquery/docs/snippets.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bigquery/docs/snippets.py b/bigquery/docs/snippets.py index 26f8630410cf..c6bc247464da 100644 --- a/bigquery/docs/snippets.py +++ b/bigquery/docs/snippets.py @@ -987,11 +987,7 @@ def test_load_table_from_file(client, to_delete): job_config.autodetect = True with open(filename, "rb") as source_file: - job = client.load_table_from_file( - source_file, - table_ref, - job_config=job_config, - ) # API request + job = client.load_table_from_file(source_file, table_ref, job_config=job_config) job.result() # Waits for table load to complete.