LucaCappelletti94 opened a new pull request, #2356: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2356
Adds support for the SQL standard `ARRAY` keyword in array type declarations, such as `INTEGER ARRAY` and `INTEGER ARRAY[4]`, which PostgreSQL accepts anywhere a type is expected (column definitions, casts, and the `::` operator). It is gated behind a new `Dialect::supports_array_typedef_with_keyword` method, enabled for PostgreSQL, and the keyword form with its optional cardinality is represented by a new `ArrayElemTypeDef::Keyword` variant. This also unifies the existing MySQL multi-valued index syntax `CAST(... AS UNSIGNED ARRAY)`. The `array: bool` field on `Expr::Cast` is removed and the trailing `ARRAY` keyword is now captured through `ArrayElemTypeDef::Keyword` for every dialect, so this is a breaking change to the AST. Parser behavior is unchanged for all dialects, only the representation is unified, and round-trip serialization is preserved. -- 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]
