osipovartem opened a new pull request, #2510:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2510
## What does this PR do?
Preserves the reluctant modifier on Snowflake/SQL `MATCH_RECOGNIZE`
quantifiers. Previously, `A*?` was represented as `(A*)?`, changing a reluctant
zero-or-more quantifier into a nested optional repetition.
The AST now represents this as `Repetition(A, Reluctant(ZeroOrMore))`.
Existing `Repetition(pattern, quantifier)` construction remains unchanged,
while the added `Reluctant` quantifier wrapper also covers `+?`, `??`, and
range forms such as `{2,4}?`. Stacked quantifiers that are not the single
reluctant suffix are rejected.
## Tests
- `cargo +1.95.0 test --offline --all-features match_recognize`
- `cargo +1.95.0 clippy --offline --all-targets --all-features -- -D
warnings`
--
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]