srowen commented on a change in pull request #26534: 
[SPARK-29343][SQL][FOLLOW-UP] Remove floating-point 
Sum/Average/CentralMomentAgg from order-insensitive aggregates
URL: https://github.com/apache/spark/pull/26534#discussion_r346907585
 
 

 ##########
 File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala
 ##########
 @@ -1002,12 +1002,13 @@ object EliminateSorts extends Rule[LogicalPlan] {
 
   private def isOrderIrrelevantAggs(aggs: Seq[NamedExpression]): Boolean = {
     def isOrderIrrelevantAggFunction(func: AggregateFunction): Boolean = func 
match {
-      case _: Sum => true
       case _: Min => true
       case _: Max => true
       case _: Count => true
 
 Review comment:
   You can collapse these cases too while you're here, but not necessary

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to