File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
sql/core/src/main/scala/org/apache/spark/sql/execution Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -257,6 +257,10 @@ private[sql] abstract class SparkStrategies extends QueryPlanner[SparkPlan] {
257
257
execution.Distinct (partial = false ,
258
258
execution.Distinct (partial = true , planLater(child))) :: Nil
259
259
260
+ case logical.SortPartitions (sortExprs, child) =>
261
+ // This sort only sorts tuples within a partition. Its requiredDistribution will be
262
+ // an UnspecifiedDistribution.
263
+ execution.Sort (sortExprs, global = false , planLater(child)) :: Nil
260
264
case logical.Sort (sortExprs, global, child) if sqlContext.externalSortEnabled =>
261
265
execution.ExternalSort (sortExprs, global, planLater(child)):: Nil
262
266
case logical.Sort (sortExprs, global, child) =>
You can’t perform that action at this time.
0 commit comments