Skip to content

Commit

Permalink
ci(bigquery): avoid race condition in create table by using a dataset…
Browse files Browse the repository at this point in the history
… scoped to a specific user and python version (#10159)
  • Loading branch information
cpcloud authored Sep 18, 2024
1 parent e35d639 commit 966c5e8
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions ibis/backends/bigquery/tests/system/test_connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,15 +241,10 @@ def test_client_with_regional_endpoints(project_id, credentials, dataset_id):
assert not len(alltypes.to_pyarrow())


def test_create_table_from_memtable_needs_quotes(project_id, credentials):
def test_create_table_from_memtable_needs_quotes(project_id, dataset_id, credentials):
con = ibis.bigquery.connect(
project_id=project_id,
dataset_id=f"{project_id}.testing",
credentials=credentials,
project_id=project_id, dataset_id=dataset_id, credentials=credentials
)

con.create_table(
"region-table",
schema=ibis.schema(dict(its_always="str", quoting="int")),
)
con.create_table("region-table", schema=dict(its_always="str", quoting="int"))
con.drop_table("region-table")

0 comments on commit 966c5e8

Please sign in to comment.