Skip to content

Commit 29acf7b

Browse files
authored
chore: bump sqlglot pin to sqlglot[c]==30.7.0 (#101)
Match the version being adopted in altimate-dags PR #1024 so all downstream consumers (`altimate-dags`, airflow workers via `altimate-datapilot-cli`) resolve to the same C-accelerated sqlglot release. The 6.8x parsing speedup landing in altimate-dags benefits any DAG path that reaches into datapilot-cli's `SqlCheck`. `SqlCheck` (`src/datapilot/core/platforms/dbt/insights/sql/sql_check.py`) is the only place that imports `sqlglot`. Its optimizer-rule pipeline (`pushdown_projections`, `normalize`, `unnest_subqueries`, `eliminate_subqueries`, `eliminate_joins`, `eliminate_ctes`) inspects each rule via `inspect.getfullargspec(rule).args`. Verified that sqlglot[c] 30.7.0 still exposes proper signatures via mypyc — no compat shim required. Non-breaking validation: - Existing test suite: **77/77 pass** on both 25.30.0 (old pin) and 30.7.0 (new pin). - SqlCheck output is byte-identical between 25.30.0 and 30.7.0 on a 7-query fixture covering filter pushdown, CTE chains, unused joins, IN-subqueries, DISTINCT dedup, OR/AND filters, and a no-op query. Same 6 insights, same recommended optimized SQL, same rule names. Refs: AltimateAI/altimate-dags#1024
1 parent 7c9043e commit 29acf7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def read(*names, **kwargs):
6767
"ruamel.yaml~=0.18.6",
6868
"tabulate~=0.9.0",
6969
"requests>=2.31",
70-
"sqlglot~=25.30.0",
70+
"sqlglot[c]==30.7.0",
7171
"mcp~=1.9.0",
7272
"pyperclip~=1.8.2",
7373
"python-dotenv~=1.0.0",

0 commit comments

Comments
 (0)