fn lower_pattern(
pattern: &MatchRecognizePattern,
) -> Result<MatchRecognizePatternNode>Expand description
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).