dongjoon-hyun commented on a change in pull request #25491: [SPARK-28699][SQL] 
Disable using radix sort for ShuffleExchangeExec in repartition case
URL: https://github.com/apache/spark/pull/25491#discussion_r315499094
 
 

 ##########
 File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/exchange/ShuffleExchangeExec.scala
 ##########
 @@ -264,7 +264,11 @@ object ShuffleExchangeExec {
             prefixComparator,
             prefixComputer,
             pageSize,
-            canUseRadixSort)
+            // As we need to compare the binary of UnsafeRow here, we can't 
make sure whether all
+            // the fields can sort fully with prefix like SortExec. So we 
disable radix sort here
+            // to avoid getting unstable sort, and result to a correctness bug.
+            // See more details in SPARK-28699.
 
 Review comment:
   Hi, @cloud-fan . Is this the only one for this topic? Or, do we have more 
TODO items against old branches (`branch-2.4` and `branch-2.3`)?

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to