Skip to content

Commit c7cf8ef

Browse files
granttswast
authored andcommitted
BigQuery Snippets: Use autodetected location (#8340)
* b/116968956 Remove location since it is now auto-detected. * Update snippets.py
1 parent 65f1657 commit c7cf8ef

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

bigquery/docs/snippets.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -983,12 +983,7 @@ def test_load_table_from_file(client, to_delete):
983983
job_config.autodetect = True
984984

985985
with open(filename, "rb") as source_file:
986-
job = client.load_table_from_file(
987-
source_file,
988-
table_ref,
989-
location="US", # Must match the destination dataset location.
990-
job_config=job_config,
991-
) # API request
986+
job = client.load_table_from_file(source_file, table_ref, job_config=job_config)
992987

993988
job.result() # Waits for table load to complete.
994989

0 commit comments

Comments
 (0)