Skip to content

Commit 6b55581

Browse files
authored
Fix: bump sqlglot to v18.10.1 (#1498)
* Fix: bump sqlglot * Bump to 18.10.1 * Fix tests
1 parent afa2e26 commit 6b55581

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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~=18.9.0",
49+
"sqlglot~=18.10.1",
5050
],
5151
extras_require={
5252
"bigquery": [

tests/core/test_schema_diff.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test_schema_diff_calculate():
4141
assert [x.sql() for x in alter_expressions] == [
4242
"""ALTER TABLE apply_to_table DROP COLUMN price""",
4343
"""ALTER TABLE apply_to_table ADD COLUMN new_column DOUBLE""",
44-
"""ALTER TABLE apply_to_table ALTER COLUMN name TYPE INT""",
44+
"""ALTER TABLE apply_to_table ALTER COLUMN name SET DATA TYPE INT""",
4545
]
4646

4747

@@ -70,7 +70,7 @@ def test_schema_diff_calculate_type_transitions():
7070
assert [x.sql() for x in alter_expressions] == [
7171
"""ALTER TABLE apply_to_table DROP COLUMN id""",
7272
"""ALTER TABLE apply_to_table ADD COLUMN id BIGINT""",
73-
"""ALTER TABLE apply_to_table ALTER COLUMN ds TYPE INT""",
73+
"""ALTER TABLE apply_to_table ALTER COLUMN ds SET DATA TYPE INT""",
7474
]
7575

7676

0 commit comments

Comments
 (0)