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

   Dialects: Generic, Snowflake, Oracle, DuckDb
   
   ## Summary
   
   This change adds SQL:2016 `RUNNING` and `FINAL` evaluation semantics 
modifiers to `MATCH_RECOGNIZE` `MEASURES` items:
   
   - Adds `Keyword::RUNNING` to `src/keywords.rs` (`Keyword::FINAL` already 
exists).
   - Adds `MeasureSemantics { Running, Final }` and `semantics: 
Option<MeasureSemantics>` to `Measure` (`Display` and `Spanned` updated).
   - Parses optional `RUNNING` / `FINAL` before a measure expression while 
preserving bare column references named `running` or `final` (for example 
`MEASURES running AS raw_col`).
   
   This pairs with #3017 and #3018 to provide full SQL:2016 `MATCH_RECOGNIZE` 
parsing 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 
tests for `RUNNING`, `FINAL`, and bare `running` column identifiers.


-- 
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