Skip to content

Snowflake: Parse structured ARRAY types - #2488

Open
osipovartem wants to merge 1 commit into
apache:mainfrom
Embucket:upstream-snowflake-structured-array
Open

Snowflake: Parse structured ARRAY types#2488
osipovartem wants to merge 1 commit into
apache:mainfrom
Embucket:upstream-snowflake-structured-array

Conversation

@osipovartem

Copy link
Copy Markdown
Contributor

Snowflake supports structured ARRAY types such as ARRAY(VARCHAR), while the parser currently treats ARRAY as untyped and leaves the parenthesized type unconsumed.

This adds a dialect capability for ARRAY(element_type), enables it for Snowflake and ClickHouse, and parses it into ArrayElemTypeDef::Parenthesis. Existing ClickHouse behavior is preserved.

Validated against:
https://docs.snowflake.com/en/sql-reference/data-types-structured#label-structured-types-array

Tests cover CREATE TABLE and CAST round trips.

AI assistance: Codex was used to prepare the implementation and tests.

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