Repository navigation
fix(validation): raise the declared sqlglot minimum to 30.29.0 - #793
Merged
christianeu-db merged 1 commit intoNov 23, 2026
Merged
Conversation
Two tests fail on sqlglot 30.19.0, the minimum validate.py declared. `snowflake-list` needs 30.22.0, where `LIST @stage` parses as a LIST STAGE statement. `desc-dot-bigquery` needs 30.29.0, where BigQuery accepts `desc.x`. The suite passes from 30.29.0. The script headers of validate.py and test_validate.py now declare `sqlglot>=30.29.0`. SQLGLOT_MIN_VERSION moves with them, so the warning for a sqlglot that is too old advises the same version. A test fails when either header differs from the constant. The guard still keys on exp.Agg, which sqlglot ships from 30.19.0. Closes apache#767
christianeu-db
approved these changes
Nov 23, 2026
christianeu-db
left a comment
Contributor
There was a problem hiding this comment.
LGTM, thanks @403pagelabs! A follow-up PR for the CI step that runs the declared minimum would be welcome.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Raises the sqlglot minimum that
validation/validate.pydeclares from 30.19.0 to 30.29.0, the oldest release the test suite passes on.On
main(83d39d6) at the declared minimum:snowflake-listexpectsLIST @stageto be rejected as a LIST STAGE statement. sqlglot parses it that way from 30.22.0.desc-dot-bigqueryexpectsdesc.xto be accepted in BigQuery. sqlglot accepts it from 30.29.0 (there is no 30.28.0).What changes:
validation/validate.pyandvalidation/test_validate.pydeclaresqlglot>=30.29.0.SQLGLOT_MIN_VERSION, added in fix(validation): degrade gracefully on sqlglot older than 30.19.0 #780, moves to 30.29.0 with them, so the warning for a sqlglot that is too old advises the declared minimum. The guard still keys onexp.Agg, which sqlglot ships from 30.19.0, so a release between the two is checked as before.SQLGLOT_MIN_VERSION.With the change:
validation/tests/desc-dot-bigquery), 977 passed, 1 skippeduv run validation/test_validate.pypasses its 59 tests on the new header.ost/pyproject.tomlalready declaressqlglot>=30.29.0, so the two packages now agree.On the CI question in #767, the workflow installs the latest sqlglot and so cannot see a drift like this one. I left it alone here. A second pytest step with
--with "sqlglot==30.29.0"would run the declared minimum. I can add it to this pull request or open a follow-up, whichever you prefer.Related Issues
Closes #767
Checklist
Validation
Tests
pytest/ CI green)Compliance