Skip to content

Fix MATCH_RECOGNIZE exclusion after symbol - #30

Merged
osipovartem merged 1 commit into
embucket-sync-df55.0.0from
snowflake-match-exclusion-after-symbol
Sep 17, 2026
Merged

osipovartem merged 1 commit into
embucket-sync-df55.0.0from
snowflake-match-exclusion-after-symbol

Conversation

@osipovartem

Copy link
Copy Markdown

Summary

  • distinguish a Snowflake {- symbol -} exclusion from a {n,m} repetition quantifier
  • allow exclusions to follow another pattern symbol without an extra group
  • add a parser regression test for S1 {- S2 -}

Snowflake syntax reference: https://docs.snowflake.com/en/sql-reference/constructs/match_recognize#pattern-specifying-the-pattern-to-match

Validation

  • cargo +1.95.0 test --test sqlparser_common test_match_recognize_patterns
  • cargo +1.95.0 clippy --all-targets -- -D warnings
  • cargo +1.95.0 fmt --all -- --check

@osipovartem
osipovartem merged commit a1fa01a into embucket-sync-df55.0.0 Sep 17, 2026
19 checks passed
@osipovartem
osipovartem deleted the snowflake-match-exclusion-after-symbol branch September 17, 2026 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant