Skip to content

Commit 127e412

Browse files
authored
Update sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/V2ScanRelationPushDown.scala
1 parent 4829767 commit 127e412

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/V2ScanRelationPushDown.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ object V2ScanRelationPushDown extends Rule[LogicalPlan] with PredicateHelper {
212212

213213
private def supportPartialAggPushDown(agg: Aggregation): Boolean = {
214214
// We don't know the agg buffer of `GeneralAggregateFunc`, so can't do partial agg push down.
215-
agg.aggregateExpressions().forall(!_.isInstanceOf[GeneralAggregateFunc])
215+
agg.aggregateExpressions().exists(_.isInstanceOf[GeneralAggregateFunc])
216216
}
217217

218218
private def addCastIfNeeded(aggAttribute: AttributeReference, aggDataType: DataType) =

0 commit comments

Comments
 (0)