Skip to content

Commit c12cdc0

Browse files
kchertenkoparthea
andauthored
chore(samples): fix BQ Dataset creation. (#293)
* fix: fix BQ Dataset creation. * fix tests * remove setup tests Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent ece59bd commit c12cdc0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

generated_samples/interactive-tutorials/events/setup_events/setup_cleanup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def create_bq_dataset(dataset_name):
154154
print(f"dataset {full_dataset_id} already exists")
155155
except NotFound:
156156
# Construct a Dataset object to send to the API.
157-
dataset = bq.Dataset(full_dataset_id)
157+
dataset = bigquery.Dataset(full_dataset_id)
158158
dataset.location = "US"
159159
bq.create_dataset(dataset)
160160
print("dataset is created")

generated_samples/interactive-tutorials/product/setup_product/setup_cleanup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def create_bq_dataset(dataset_name):
165165
print(f"dataset {full_dataset_id} already exists")
166166
except NotFound:
167167
# Construct a Dataset object to send to the API.
168-
dataset = bq.Dataset(full_dataset_id)
168+
dataset = bigquery.Dataset(full_dataset_id)
169169
dataset.location = "US"
170170
bq.create_dataset(dataset)
171171
print("dataset is created")

0 commit comments

Comments
 (0)