gokselk opened a new issue, #14110:
URL: https://github.com/apache/datafusion/issues/14110

   ### Is your feature request related to a problem or challenge?
   
   When working with lexicographical orderings that share a common prefix 
column A, we currently don't leverage the fact that satisfying the prefix 
ordering implies satisfaction of all derived orderings. This leads to redundant 
sort operations in the physical plan.
   
   ### Describe the solution you'd like
   
   Introduce Constraints or similar concepts in the physical planner to 
recognize and optimize cases where multiple lexicographical orderings share 
common prefixes. For instance, if we have a global ordering on column A (with 
unique elements), we should recognize that orderings like [prefix..., A, B, C] 
and [prefix..., A, D] are automatically satisfied when [prefix..., A] is 
satisfied.
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


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