Nithurshen commented on issue #19403:
URL: https://github.com/apache/datafusion/issues/19403#issuecomment-3680079957

   Hi @zhuqi-lucas , I have opened a PR to address this issue.
   
   I implemented the logic in `PushdownSort` to utilize 
`EquivalenceProperties`. The optimizer now detects if a column in the sort 
prefix is constant and strips it from the `required_ordering` before attempting 
the pushdown.
   
   I've also added a unit test using a mock plan to verify that the `SortExec` 
is correctly removed when the prefix is constant.
   
   Kindly let me know what you think.


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