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

   Snowflake structured OBJECT types can contain named, nullable or `NOT NULL` 
fields and recursively nested OBJECT types. The generic `Custom(Vec<String>)` 
representation loses these boundaries.
   
   This adds `DataType::Object(Vec<ColumnDef>)`, a Snowflake dialect 
capability, recursive parsing and formatting, and leaves unstructured `OBJECT` 
unchanged.
   
   Validated against:
   
https://docs.snowflake.com/en/sql-reference/data-types-structured#structured-object-types
   
   Tests cover nested types, `NOT NULL` AST preservation, unstructured 
`OBJECT`, and malformed definitions.
   
   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