Skip to content

Commit

Permalink
test(bigquery): fix struct field quoting in type translation tests (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored Mar 29, 2024
1 parent 18bb91b commit 010d92d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ibis/backends/bigquery/tests/unit/test_datatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
dt.Struct.from_tuples(
[("a", dt.int64), ("b", dt.string), ("c", dt.Array(dt.string))]
),
"STRUCT<a INT64, b STRING, c ARRAY<STRING>>",
"STRUCT<`a` INT64, `b` STRING, `c` ARRAY<STRING>>",
id="struct",
),
param(dt.date, "DATE", id="date"),
Expand All @@ -48,7 +48,7 @@
),
param(
dt.Array(dt.Struct({"a": dt.string})),
"ARRAY<STRUCT<a STRING>>",
"ARRAY<STRUCT<`a` STRING>>",
id="array<struct>",
),
param(dt.Decimal(38, 9), "NUMERIC", id="decimal-numeric"),
Expand Down Expand Up @@ -77,7 +77,7 @@ def test_simple_failure_mode(datatype):
BigQueryType.to_string(datatype)


def test_struct_type():
def test_array_type():
dtype = dt.Array(dt.int64)
parsed_type = sg.parse_one("BIGINT[]", into=sg.exp.DataType, read="duckdb")

Expand Down

0 comments on commit 010d92d

Please sign in to comment.