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

   ### What problem does this PR solve?
   
   Issue Number: close #xxx
   
   Related PR: #xxx
   
   Problem Summary: PushProjectThroughUnion allowed cast projections to be 
pushed below UNION DISTINCT. For non-injective casts, distinct was then 
evaluated after the cast instead of before the cast, which could incorrectly 
collapse rows that were distinct in the original union output. Restrict cast 
project pushdown to UNION ALL and add tests for the qualifier guard and the 
datetime-to-date regression case.
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test: Regression test / Unit Test
       - ./run-fe-ut.sh --run 
org.apache.doris.nereids.rules.rewrite.PushProjectThroughUnionTest
       - ./run-regression-test.sh --run -d nereids_syntax_p0 -s set_operation
       - mvn checkstyle:check -pl fe-core
   - Behavior changed: No
   - 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