chore(deps): update sqlglot requirement from ~=29.0.1 to ~=30.2.0#322
Merged
chore(deps): update sqlglot requirement from ~=29.0.1 to ~=30.2.0#322
Conversation
Updates the requirements on [sqlglot](https://github.com/tobymao/sqlglot) to permit the latest version. - [Commits](tobymao/sqlglot@v29.0.1...v30.2.0) --- updated-dependencies: - dependency-name: sqlglot dependency-version: 30.2.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
2587813 to
a5fa0a9
Compare
sqlglot 30 removed the expression_core module that this file imported directly. Switching the placeholder helpers to exp.Expression keeps the typing intent the same while using the stable public API, which lets the test suite import fakesnow again under the upgraded dependency.
sqlglot 30 parses TO_VARIANT as exp.ToVariant instead of only emitting an anonymous function call. This commit teaches the transform to rewrite that dedicated node to TO_JSON while still preserving the older anonymous fallback, so TO_VARIANT queries keep producing JSON values under the upgraded parser.
sqlglot 30 routes SHA2 helpers through built-in SHA2 and SHA2Digest expressions, and the old custom SHA256 expression class no longer instantiates cleanly under the new parent-setting rules. This commit rewrites the transform to emit plain SQL function expressions for SHA256, SHA2, and SHA2_BINARY cases so the existing Snowflake compatibility behavior keeps working without relying on the removed internal construction path.
Pyright rejects exp.Expression as a private sqlglot type under 30.x, even though parse_one and related APIs are publicly typed in terms of Expr. Switch the affected annotations and generic isinstance checks to Expr across fakesnow and the related tests, and include the small ruff/ruff-format cleanup from rerunning hooks so make pyright is green again.
tekumara
approved these changes
Apr 3, 2026
tekumara
pushed a commit
that referenced
this pull request
Apr 11, 2026
🤖 I have created a release *beep* *boop* --- ## [0.11.5](v0.11.4...v0.11.5) (2026-04-11) ### Features * implicit VARCHAR-to-numeric cast for aggregate functions ([#326](#326)) ([3f47c30](3f47c30)) ### Bug Fixes * implicit VARCHAR-to-number cast matches snowflake column names ([5733c70](5733c70)) ### Chores * **deps-dev:** update snowflake-sqlalchemy requirement from ~=1.8.2 to ~=1.9.0 in the pip group across 1 directory ([#321](#321)) ([b8f4ede](b8f4ede)) * **deps:** update duckdb requirement from ~=1.4.1 to ~=1.5.1 ([#323](#323)) ([e8f49a0](e8f49a0)) * **deps:** update sqlglot requirement from ~=29.0.1 to ~=30.2.0 ([#322](#322)) ([3b434fa](3b434fa)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: potatobot-prime[bot] <132267321+potatobot-prime[bot]@users.noreply.github.com>
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.
Updates the requirements on sqlglot to permit the latest version.
Commits
8e0b9f5fix(snowflake): Fix annotate_types crashes for FLATTEN over STRUCT and Within...c9562deSync w/ integration tests91dfbf3Sync w/ integration tests3f31ffefeat(duckdb): Add transpilation support for CHR function. (#7430)f9d37c9Sync w/ integration tests6346237Typing: improveexpressions.buildersmodule typing coverage (#7429)c2b69d4Feat(sqlite): support virtual table ddl closes #74251fb5ff0Sync w/ integration tests62d7176feat(duckdb): Add transpilation support for BIT_LENGTH (#7421)ab8f808refactor(expressions): Remove mypyc init_subclass workaround and simplify...