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

   Related PR: #27628
   
   Problem Summary: PushDownTopNDistinctThroughUnion used the rewritten child 
plan output to map UNION output slots when pushing TopN distinct into UNION 
branches. For UNION DISTINCT queries with duplicate projection columns and 
window output, the child plan output can be shorter than the UNION regular 
child output, causing IndexOutOfBoundsException during rewrite. Use the UNION 
regular child output for slot remapping and add focused FE and regression 
coverage for duplicate output with window plus outer ORDER BY LIMIT.


-- 
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