wangyum opened a new pull request #33240:
URL: https://github.com/apache/spark/pull/33240


   ### What changes were proposed in this pull request?
   
   Make it recursive remove sort  if the maximum number of rows less than or 
equal to 1. For example:
   ```sql
   select a from (select a from values(0, 1) t(a, b) order by a) order by a
   ```
   
   ### Why are the changes needed?
   
   Fix Once strategy's idempotence is broken for batch Eliminate Sorts.
   
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   
   ### How was this patch tested?
   
   Unit test.
   


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