TheDarkLightX commented on PR #24456:
URL: https://github.com/apache/datafusion/pull/24456#issuecomment-7072954563

   I have a small three-table repro for the plan round-trip. On a3e100b, the 
optimizer reports a cost of 58, but the plan it rebuilds costs 60 under the 
same model. The parent was priced using a partitioned child; solution() picks 
cheapest(child) instead. That child is cheaper on its own, but the parent then 
has to repartition its output.
   
   I have a regression test and a two-file patch that records the selected 
child partitionings and uses them when rebuilding the plan. 
   
[24456-reconstruction.patch](https://github.com/user-attachments/files/35224248/24456-reconstruction.patch)
   


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