Skip to main content

Module stream_match_recognize

Module stream_match_recognize 

Source

Structsยง

StreamMatchRecognize
StreamMatchRecognize implements super::Stream for a SQL MATCH_RECOGNIZE (row pattern recognition) operation.

Functionsยง

lower_pattern ๐Ÿ”’
Lower a bound MatchRecognizePattern (the sqlparser AST) into the structured pattern proto consumed by the executor. Parenthesized groups are flattened (the executor pattern has no group node); anchors (^, $) and exclusions ({- ... -}) are rejected here as they are not yet supported. This replaces the previous text round-trip (Display โ†” a hand-rolled parser).
lower_quantifier ๐Ÿ”’
Map a RepetitionQuantifier to the proto quantifier. *, +, ? map to their dedicated kinds; the {...} forms all map to RANGE with an explicit min and an optional max.