Skip to content

Commit df0903a

Browse files
authored
Chore: bump sqlglot to v17.10.2 (#1276)
* Fix: convert column names in columns_to_types to identifiers * Refactor
1 parent 2456375 commit df0903a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"requests",
4747
"rich",
4848
"ruamel.yaml",
49-
"sqlglot~=17.9.1",
49+
"sqlglot~=17.10.2",
5050
],
5151
extras_require={
5252
"bigquery": [

tests/core/test_model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,16 +1452,16 @@ def test_model_ctas_query():
14521452

14531453

14541454
def test_is_breaking_change():
1455-
model = create_external_model("a", columns={"a": "int", "b": "int"})
1455+
model = create_external_model("a", columns={"a": "int", "limit": "int"})
14561456
assert model.is_breaking_change(create_external_model("a", columns={"a": "int"})) is False
14571457
assert model.is_breaking_change(create_external_model("a", columns={"a": "text"})) is None
14581458
assert (
1459-
model.is_breaking_change(create_external_model("a", columns={"a": "int", "b": "int"}))
1459+
model.is_breaking_change(create_external_model("a", columns={"a": "int", "limit": "int"}))
14601460
is False
14611461
)
14621462
assert (
14631463
model.is_breaking_change(
1464-
create_external_model("a", columns={"a": "int", "b": "int", "c": "int"})
1464+
create_external_model("a", columns={"a": "int", "limit": "int", "c": "int"})
14651465
)
14661466
is None
14671467
)

0 commit comments

Comments
 (0)