Skip to content

Commit

Permalink
test(bigquery): ensure that quoting test generates unique table name (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored Sep 20, 2024
1 parent 6042bf4 commit 4050073
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions ibis/backends/bigquery/tests/system/test_connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import ibis
import ibis.common.exceptions as exc
from ibis.util import gen_name


def test_repeated_project_name(project_id, credentials):
Expand Down Expand Up @@ -246,5 +247,12 @@ def test_create_table_from_memtable_needs_quotes(project_id, dataset_id, credent
project_id=project_id, dataset_id=dataset_id, credentials=credentials
)

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

t = con.create_table(name, schema=schema)

try:
assert t.schema() == ibis.schema(schema)
finally:
con.drop_table(name)

0 comments on commit 4050073

Please sign in to comment.