Skip to content

Support unparsing UNNEST plan for Snowflake dialect#9

Merged
goldmedal merged 3 commits intocanner/v49.0.1from
feat/unparse-flatten
Oct 29, 2025
Merged

Support unparsing UNNEST plan for Snowflake dialect#9
goldmedal merged 3 commits intocanner/v49.0.1from
feat/unparse-flatten

Conversation

@goldmedal
Copy link
Copy Markdown

@goldmedal goldmedal commented Oct 29, 2025

Which issue does this PR close?

  • Closes #.

Rationale for this change

Snowflake doesn't support UNNEST syntax, but they use FLATTEN instead. FLATTEN is a table function, and it has a different schema from the common unnest usage. We need to transform the unnest plan to fit their schema.

What changes are included in this PR?

  • introduce unparse_unnest_table_factor and relation_alias_overrides for unparsing unnest.
  • introduce SnowflakeDialect.

Are these changes tested?

Are there any user-facing changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant