Skip to content

Commit

Permalink
test(bigquery): add test for complex column name
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Jul 1, 2024
1 parent 6686aba commit b6e7978
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ibis/backends/bigquery/tests/system/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,3 +428,11 @@ def test_table_suffix():
expr = t.filter(t._TABLE_SUFFIX == "1929", t.max != 9999.9).head(1)
result = expr.execute()
assert not result.empty


def test_complex_column_name(con):
expr = ibis.literal(1).name(
"StringToTimestamp_StringConcat_date_string_col_' America_New_York'_'%F %Z'"
)
result = con.to_pandas(expr)
assert result == 1

0 comments on commit b6e7978

Please sign in to comment.