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

   ### Problem Summary:
   Partition pruning already restricted the scan row count to the selected 
partitions, but filter estimation still applied the same partition predicates 
as ordinary selectivities, underestimating cardinality.
   
   ### Solution:
   Record which partition predicates are already reflected in the scan row 
count; in filter estimation, use those predicates only to constrain column 
domains while preserving the row count, and estimate only the remaining 
predicates normally. Carry the partition-pruning proof on the scan so later 
rewrites either rebind it to the scan's slots or discard it, making the proof 
valid by construction.


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