From 64e6bc66b99627490e751a38c03d8aa83e5ab98b Mon Sep 17 00:00:00 2001 From: "joey.ljy" Date: Fri, 23 Feb 2024 19:57:46 +0800 Subject: [PATCH] No need to compare all the agg mode --- .../execution/HashAggregateExecBaseTransformer.scala | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 } }