Repository navigation
Conversation
…bt models write them
Snowflake correlates TABLE(FLATTEN(t.col)) f to the sources before it, as dbt models write it; it now converts through the LATERAL FLATTEN rule, with a positional or named input.
Snowflake results for the six cases in cases/relational/pivot_unaliased.toml and cases/semi-structured/table_flatten.toml at a20177b.
Contributor
Author
|
Closing: SQLQuack lands through local-gate trains, not PR merges (D94), so open PRs only add clutter (D628/D630). The branch is kept. Any work here that isn't on main yet is tracked by the train owner and lands through a train. |
kvlonge
added a commit
that referenced
this pull request
Nov 9, 2026
D591's function conversion moves into sqlquack-convert's Snowflake analysis, beside analyze and analyze_function, with this branch's crate paths.
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.
Why
, TABLE(FLATTEN(input => ...)) fafter a comma is a common way to explode an array in dbt models, and it was refused as a missing rule.Changes
TABLE(FLATTEN(...))with an alias and no column list, after another FROM source as a comma or CROSS JOIN source, converts the same way asLATERAL FLATTEN, which it correlates like.Verification