bvolpato opened a new pull request, #3018:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/3018
Dialects: Generic, Snowflake, Oracle, DuckDb
## Summary
This change adds SQL:2016 `SUBSET` union variable parsing and display
support to `TableFactor::MatchRecognize`:
- Adds `Keyword::SUBSET` to `src/keywords.rs`.
- Adds `SubsetDefinition { name: Ident, symbols: Vec<Ident> }` (`Display`
and `Spanned` implemented) and a `subsets: Vec<SubsetDefinition>` field to
`TableFactor::MatchRecognize`.
- Parses optional `SUBSET name = (sym1, sym2, ...) [, ...]` between `PATTERN
(...)` and `DEFINE ...` in `parse_match_recognize`.
This pairs with the non-breaking parser fixes in #3017 to close SQL:2016
`MATCH_RECOGNIZE` parsing gaps for the `datafusion-match-recognize` DataFusion
`RelationPlanner` extension.
## Validation
- Ran `cargo fmt --all -- --check` and `cargo clippy --all-targets -- -D
warnings`.
- Ran `cargo test` across `sqlparser_common`, `sqlparser_snowflake`,
`sqlparser_postgres`, and `sqlparser_duckdb`, including round-trip parsing and
AST verification for `SUBSET`.
--
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]