eldenmoon opened a new pull request, #66207:
URL: https://github.com/apache/doris/pull/66207
### What problem does this PR solve?
Issue Number: None
Related PR: #61190
Problem Summary: Root VARIANT MATCH predicates were rejected only when the
Match expression was a top-level filter conjunct. A Match nested under OR could
bypass frontend analysis and proceed to planning. Recursively collect Match
expressions from each filter expression and apply the existing operand and root
Variant validation to every Match node. Add a focused FE unit test matching a
mixed text/root Variant OR predicate.
### Release note
Reject MATCH predicates on VARIANT root columns even when nested in compound
filter expressions.
### Check List (For Author)
- Test: Unit Test
- `./run-fe-ut.sh --run
org.apache.doris.nereids.rules.rewrite.CheckMatchExpressionTest`
- `./build.sh --fe`
- Behavior changed: Yes. Nested root VARIANT MATCH predicates now fail
during FE analysis, consistent with direct predicates.
- Does this need documentation: No
--
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]