kazuyukitanimura commented on issue #353:
URL: 
https://github.com/apache/datafusion-comet/issues/353#issuecomment-2378720125

   I found that Spark `ORDER BY` is not stable sort indicated by 
https://issues.apache.org/jira/browse/SPARK-45243
   Datafusion sort is not stable either 
https://github.com/apache/datafusion/blob/9b4f90ad1eefabdc0d5bbbfd99e58765b041bb77/datafusion/physical-plan/src/sorts/sort.rs#L601
   SQL standard does not seem to guarantee the stabiility 
https://stackoverflow.com/questions/15522746/is-sql-order-by-clause-guaranteed-to-be-stable-by-standards
   
   I see sometimes Spark and Datafusion sort order becomes same for 0.0 and 
-0.0. I agree that I would not worry about it


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