cloud-fan commented on code in PR #36325:
URL: https://github.com/apache/spark/pull/36325#discussion_r858274069
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/AggregatePushDownUtils.scala:
##########
@@ -106,7 +107,9 @@ object AggregatePushDownUtils {
// aggregate push down simple and don't handle this complicate case for
now.
return None
}
- aggregation.groupByColumns.foreach { col =>
+ aggregation.groupByExpressions.foreach { expr =>
+ if (!expr.isInstanceOf[FieldReference]) return None
Review Comment:
nit:
```
val colName = expr match {
case f: FieldReference if f.fieldNames.length == 1 &&
isPartitionCol(f.fieldNames.head) => f.fieldNames.head
case _ => return None
}
finalSchema = ...
```
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]