avantgardnerio commented on PR #26593:
URL: https://github.com/apache/datafusion/pull/26593#issuecomment-7329936976

   @stuhood I think this comes down to what Partitioning is for. IMO it's a 
property: it says what a partition is, and the planner relies on it the same 
way it relies on CardinalityEffect. A partition's key range is part of that, so 
it belongs in Partitioning. 
   
   Statistics record what was observed. Stats and partitioning can both be 
correct, but they answer different questions. Exact(0) says a partition has no 
rows, not which keys it's responsible for. Combining split points with Exact(0) 
gets the same information to rules, but it gets there indirectly, by encoding a 
property in observations.
   
   Bounds are fixed when the plan is split, so this isn't AQE. And perf isn't 
my argument either way.
   
   Just my $0.02


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