Skip to content

Commit 6c5f04c

Browse files
committed
address comment
1 parent 6e95e37 commit 6c5f04c

File tree

1 file changed

+1
-2
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer

1 file changed

+1
-2
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,8 +740,7 @@ object EliminateSorts extends Rule[LogicalPlan] {
740740
*/
741741
object RemoveRedundantSorts extends Rule[LogicalPlan] {
742742
def apply(plan: LogicalPlan): LogicalPlan = plan transform {
743-
case Sort(orders, true, child) if child.outputOrdering.nonEmpty
744-
&& SortOrder.orderingSatisfies(child.outputOrdering, orders) =>
743+
case Sort(orders, true, child) if SortOrder.orderingSatisfies(child.outputOrdering, orders) =>
745744
child
746745
}
747746
}

0 commit comments

Comments
 (0)