bendu opened a new pull request, #2899: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2899
<!-- comma separated, or `none` --> Dialects: PostgreSQL, Generic Fix array slices whose bounds contain unparenthesized subscript expressions. Previously, `tags[bounds[1]:bounds[2]]` was misread as an array typed string and an index rather than a `Subscript::Slice`. The parser now rolls back typed-string speculation when the value would be a placeholder, preserving typed string literals, casts, and colon placeholders. Adds exact AST regression coverage and a fuzz seed for nested lower and upper bounds, parentheses, omitted bounds, strides, and multidimensional slices. PostgreSQL syntax reference: https://www.postgresql.org/docs/current/arrays.html#ARRAYS-ACCESSING Validation: - `cargo fmt --all -- --check` — passed - `cargo test --all-features` — passed - `cargo clippy --all-targets --all-features -- -D warnings` — passed - -- 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]
