Skip to content

Commit

Permalink
chore(samples): fix BQ Dataset creation. (#293)
Browse files Browse the repository at this point in the history
* fix: fix BQ Dataset creation.

* fix tests

* remove setup tests

Co-authored-by: Anthonios Partheniou <[email protected]>
  • Loading branch information
2 people authored and dandhlee committed Dec 2, 2022
1 parent 2815676 commit f2f0136
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def create_bq_dataset(dataset_name):
print(f"dataset {full_dataset_id} already exists")
except NotFound:
# Construct a Dataset object to send to the API.
dataset = bq.Dataset(full_dataset_id)
dataset = bigquery.Dataset(full_dataset_id)
dataset.location = "US"
bq.create_dataset(dataset)
print("dataset is created")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def create_bq_dataset(dataset_name):
print(f"dataset {full_dataset_id} already exists")
except NotFound:
# Construct a Dataset object to send to the API.
dataset = bq.Dataset(full_dataset_id)
dataset = bigquery.Dataset(full_dataset_id)
dataset.location = "US"
bq.create_dataset(dataset)
print("dataset is created")
Expand Down

0 comments on commit f2f0136

Please sign in to comment.