diff --git a/gluten-core/src/main/scala/io/glutenproject/execution/HashAggregateExecBaseTransformer.scala b/gluten-core/src/main/scala/io/glutenproject/execution/HashAggregateExecBaseTransformer.scala index b4521eb565bd..061ac18b1faa 100644 --- a/gluten-core/src/main/scala/io/glutenproject/execution/HashAggregateExecBaseTransformer.scala +++ b/gluten-core/src/main/scala/io/glutenproject/execution/HashAggregateExecBaseTransformer.scala @@ -154,11 +154,7 @@ abstract class HashAggregateExecBaseTransformer( case Partial | Final | Complete => true case _ => false } - case _ => - mode match { - case Partial | PartialMerge | Final | Complete => true - case _ => false - } + case _ => true } }