From b6e797862f24eeb5fc3890cc4312959d5a846fb9 Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Mon, 1 Jul 2024 10:45:48 -0400 Subject: [PATCH] test(bigquery): add test for complex column name --- ibis/backends/bigquery/tests/system/test_client.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ibis/backends/bigquery/tests/system/test_client.py b/ibis/backends/bigquery/tests/system/test_client.py index dfb36bf69e61..396ef1c4e6a8 100644 --- a/ibis/backends/bigquery/tests/system/test_client.py +++ b/ibis/backends/bigquery/tests/system/test_client.py @@ -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