osipovartem opened a new pull request, #2488:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2488

   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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to