From 8c0a4b86e30ae35f7675d2556407207f7e3bcb63 Mon Sep 17 00:00:00 2001 From: Tyler White <50381805+IndexSeek@users.noreply.github.com> Date: Sat, 24 Aug 2024 16:47:51 -0400 Subject: [PATCH] test(sql): quote table and column identifiers --- ibis/backends/tests/test_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ibis/backends/tests/test_client.py b/ibis/backends/tests/test_client.py index 59172fb4badd7..7c45039411fe7 100644 --- a/ibis/backends/tests/test_client.py +++ b/ibis/backends/tests/test_client.py @@ -1764,7 +1764,7 @@ def test_cross_database_join(con_create_database, monkeypatch): ) def test_insert_into_table_missing_columns(con): table_name = gen_name("table") - ct_sql = f"CREATE TABLE {table_name} (a INT DEFAULT 1, b VARCHAR(10));" + ct_sql = f'CREATE TABLE "{table_name}" ("a" INT DEFAULT 1, "b" VARCHAR(10));' sg_expr = sg.parse_one(ct_sql, read="duckdb") con.raw_sql(sg_expr.sql(dialect=con.dialect)) con.insert(table_name, [{"b": "hello"}])