Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Won't Fix
-
2.2.1
-
None
-
None
Description
org.apache.spark.sql.execution.exchange.ShuffleExchange
In the "needtocopyobjectsbeforguffle()" function,there is a nested "if or else" branch .
The <sortBasedShufffleOn> condition in the first layer "if" has the same value as the <bypassIsSupported> condition in the second layer "if", that is, <bypassIsSupported> must be true when <sortBasedShufffleOn> is true.
In addition, the <byPassMergeThreshold> condition will be used in the second layer "if" and should not be calculated until needed.