Skip to content

Commit bc454b6

Browse files
committed
fix
1 parent e544ca3 commit bc454b6

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ object EliminateSorts extends Rule[LogicalPlan] {
10041004

10051005
private def isOrderIrrelevantAggs(aggs: Seq[NamedExpression]): Boolean = {
10061006
def isOrderIrrelevantAggFunction(func: AggregateFunction): Boolean = func match {
1007-
case _: Min | _: Max | _: Count | _: CountIf | _: MaxMinBy => true
1007+
case _: Min | _: Max | _: Count | _: MaxMinBy => true
10081008
// Arithmetic operations for floating-point values are order-sensitive
10091009
// (they are not associative).
10101010
case _: Sum | _: Average | _: CentralMomentAgg =>

0 commit comments

Comments
 (0)