diff --git a/backends-velox/src/test/scala/org/apache/gluten/execution/VeloxAggregateFunctionsSuite.scala b/backends-velox/src/test/scala/org/apache/gluten/execution/VeloxAggregateFunctionsSuite.scala index ca259e0faeb7..e1c89f986967 100644 --- a/backends-velox/src/test/scala/org/apache/gluten/execution/VeloxAggregateFunctionsSuite.scala +++ b/backends-velox/src/test/scala/org/apache/gluten/execution/VeloxAggregateFunctionsSuite.scala @@ -176,6 +176,15 @@ abstract class VeloxAggregateFunctionsSuite extends VeloxWholeStageTransformerSu }) == 4) } } + + // Test duplicate field project. + runQueryAndCompare(""" + |select l_orderkey, sum(l_partkey), sum(l_partkey1) from + | (select l_orderkey, l_partkey, l_partkey as l_partkey1 from lineitem) + | group by l_orderkey + |""".stripMargin) { + checkGlutenPlan[HashAggregateExecTransformer] + } } test("min and max") {