eldenmoon opened a new pull request, #63772:
URL: https://github.com/apache/doris/pull/63772

   ### What problem does this PR solve?
   
   Issue Number: None
   
   Related PR: None
   
   Problem Summary: CIR-20398 reports that MATCH predicates fail for VARIANT 
dot subcolumn access such as `cast(msg.trace_id as string)`, while the 
equivalent bracket access `msg['trace_id']` works. Dot access can leave an 
`Alias` around the pruned subcolumn slot, and `CheckMatchExpression` rejected 
the aliased slot.
   
   ### Release note
   
   Fix MATCH predicates on VARIANT dot subcolumn access such as `msg.trace_id` 
so they are accepted like equivalent bracket subcolumn access.
   
   ### Check List (For Author)
   
   - Test: Unit Test
       - `./run-fe-ut.sh --run 
org.apache.doris.nereids.rules.rewrite.CheckMatchExpressionTest`
   - Behavior changed: Yes. MATCH validation now accepts alias/cast chains that 
resolve to a SlotReference, while still rejecting aliases over non-slot 
expressions and root VARIANT MATCH 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]

Reply via email to