maytasm commented on PR #37330: URL: https://github.com/apache/spark/pull/37330#issuecomment-1867510631
Ah! I haven't tried running yet but took a look at PR https://github.com/apache/spark/pull/44429/ and I think it does solve this issue. So basically the logic for converting `global sort` to `Exchange rangepartition` is moved into another rule, RemoveRedundantSorts, and EliminateSorts is run before RemoveRedundantSorts. Meaning the no-op sort like `Sort [20231221 ASC NULLS FIRST], true` would be remove by EliminateSorts already by the time RemoveRedundantSorts is run. -- 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]
