Skip to content

Commit 64d3bcd

Browse files
committed
Chore!: bump sqlglot to v26.15.0
1 parent 4c89eb0 commit 64d3bcd

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies = [
2121
"requests",
2222
"rich[jupyter]",
2323
"ruamel.yaml",
24-
"sqlglot[rs]~=26.13.2",
24+
"sqlglot[rs]~=26.15.0",
2525
"tenacity",
2626
"time-machine",
2727
"json-stream"

tests/core/engine_adapter/test_athena.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def test_ctas_iceberg_partitioned(adapter: AthenaEngineAdapter):
265265
)
266266

267267
assert to_sql_calls(adapter) == [
268-
"""CREATE TABLE IF NOT EXISTS "test_table" WITH (table_type='iceberg', partitioning=ARRAY['business_date'], location='s3://bucket/prefix/test_table/', is_external=false) AS SELECT CAST("business_date" AS TIMESTAMP) AS "business_date", CAST("colb" AS VARCHAR) AS "colb", CAST("colc" AS VARCHAR) AS "colc" FROM (SELECT CAST(1 AS TIMESTAMP) AS "business_date", CAST(2 AS VARCHAR) AS "colb", 'foo' AS "colc" LIMIT 0) AS "_subquery\""""
268+
"""CREATE TABLE IF NOT EXISTS "test_table" WITH (table_type='iceberg', partitioning=ARRAY['"business_date"'], location='s3://bucket/prefix/test_table/', is_external=false) AS SELECT CAST("business_date" AS TIMESTAMP) AS "business_date", CAST("colb" AS VARCHAR) AS "colb", CAST("colc" AS VARCHAR) AS "colc" FROM (SELECT CAST(1 AS TIMESTAMP) AS "business_date", CAST(2 AS VARCHAR) AS "colb", 'foo' AS "colc" LIMIT 0) AS "_subquery\""""
269269
]
270270

271271

tests/core/engine_adapter/test_trino.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ def test_partitioned_by_hive_delta(
127127
adapter.ctas("test_table", parse_one("select 1"), partitioned_by=[exp.to_column("colb")]) # type: ignore
128128

129129
assert to_sql_calls(adapter) == [
130-
"""CREATE TABLE IF NOT EXISTS "test_table" ("cola" INTEGER, "colb" VARCHAR) WITH (PARTITIONED_BY=ARRAY['colb'])""",
131-
"""CREATE TABLE IF NOT EXISTS "test_table" WITH (PARTITIONED_BY=ARRAY['colb']) AS SELECT 1""",
130+
"""CREATE TABLE IF NOT EXISTS "test_table" ("cola" INTEGER, "colb" VARCHAR) WITH (PARTITIONED_BY=ARRAY['"colb"'])""",
131+
"""CREATE TABLE IF NOT EXISTS "test_table" WITH (PARTITIONED_BY=ARRAY['"colb"']) AS SELECT 1""",
132132
]
133133

134134

@@ -247,8 +247,8 @@ def test_partitioned_by_with_multiple_catalogs_same_server(
247247
)
248248

249249
assert to_sql_calls(adapter) == [
250-
"""CREATE TABLE IF NOT EXISTS "datalake"."test_schema"."test_table" ("cola" INTEGER, "colb" VARCHAR) WITH (PARTITIONED_BY=ARRAY['colb'])""",
251-
"""CREATE TABLE IF NOT EXISTS "datalake"."test_schema"."test_table" WITH (PARTITIONED_BY=ARRAY['colb']) AS SELECT 1""",
250+
"""CREATE TABLE IF NOT EXISTS "datalake"."test_schema"."test_table" ("cola" INTEGER, "colb" VARCHAR) WITH (PARTITIONED_BY=ARRAY['"colb"'])""",
251+
"""CREATE TABLE IF NOT EXISTS "datalake"."test_schema"."test_table" WITH (PARTITIONED_BY=ARRAY['"colb"']) AS SELECT 1""",
252252
"""CREATE TABLE IF NOT EXISTS "datalake_iceberg"."test_schema"."test_table" ("cola" INTEGER, "colb" VARCHAR) WITH (PARTITIONING=ARRAY['colb'])""",
253253
"""CREATE TABLE IF NOT EXISTS "datalake_iceberg"."test_schema"."test_table" WITH (PARTITIONING=ARRAY['colb']) AS SELECT 1""",
254254
]

0 commit comments

Comments
 (0)