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 d52142d commit 3cfeec3
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 @@ -436,3 +436,11 @@ def test_parameters_in_url_connect(mocker):
parsed = urlparse("bigquery://ibis-gbq?location=us-east1")
ibis.connect("bigquery://ibis-gbq?location=us-east1")
spy.assert_called_once_with(parsed, location="us-east1")


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 3cfeec3

Please sign in to comment.