@@ -1164,7 +1164,7 @@ object Utils extends Logging {
11641164 // To avoid the need for special handling of the grouping columns, we transform the grouping expressions
11651165 // into AggregateExpressions that collect the first seen value.
11661166 val aggGroupingExpressions = groupingExpressions.map {
1167- case e : NamedExpression => AggregateExpression (First (e, Literal ( false ) ), Complete , false )
1167+ case e : NamedExpression => AggregateExpression (First (e, false ), Complete , false )
11681168 }
11691169 val aggregateExpressions = aggGroupingExpressions ++ aggExpressions
11701170
@@ -1199,6 +1199,7 @@ object Utils extends Logging {
11991199 input : Seq [Attribute ],
12001200 aggSchema : Seq [Attribute ],
12011201 concatSchema : Seq [Attribute ]): Int = {
1202+ println(e.aggregateFunction)
12021203 (e.aggregateFunction: @ unchecked) match {
12031204
12041205 case avg @ Average (child) =>
@@ -1293,7 +1294,7 @@ object Utils extends Logging {
12931294 evaluateExprs.map(e => flatbuffersSerializeExpression(builder, e, aggSchema)).toArray)
12941295 )
12951296
1296- case f @ First (child, Literal ( false , BooleanType ) ) =>
1297+ case f @ First (child, false ) =>
12971298 val first = f.aggBufferAttributes(0 )
12981299 val valueSet = f.aggBufferAttributes(1 )
12991300
@@ -1331,7 +1332,7 @@ object Utils extends Logging {
13311332 builder,
13321333 evaluateExprs.map(e => flatbuffersSerializeExpression(builder, e, aggSchema)).toArray))
13331334
1334- case l @ Last (child, Literal ( false , BooleanType ) ) =>
1335+ case l @ Last (child, false ) =>
13351336 val last = l.aggBufferAttributes(0 )
13361337 val valueSet = l.aggBufferAttributes(1 )
13371338
0 commit comments