snuyanzin commented on code in PR #30256:
URL: https://github.com/apache/flink/pull/30256#discussion_r4790876317


##########
docs/content/docs/sql/reference/queries/match_recognize.md:
##########
@@ -1117,6 +1117,9 @@ Unsupported features include:
   * Exclusion - `PATTERN ({- A -} B)` meaning that `A` will be looked for but 
will not participate
     in the output. This works only for the `ALL ROWS PER MATCH` mode.
   * Reluctant optional quantifier - `PATTERN A??` only the greedy optional 
quantifier is supported.
+  * Optional variable after a greedy variable - a variable with the `?`, `??`, 
`*` or `*?`
+    quantifier can not directly follow a variable with a greedy quantifier 
(e.g. `+`, `*`, `{2,}`).
+    Thus, `PATTERN (A+ B? C)` is not a valid pattern, while `PATTERN (A+ 
B{0,1} C)` is.

Review Comment:
   better to use something different like `{0,3}` which works



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

Reply via email to