grundprinzip commented on code in PR #39254:
URL: https://github.com/apache/spark/pull/39254#discussion_r1058066260
##########
connector/connect/server/src/main/scala/org/apache/spark/sql/connect/planner/SparkConnectPlanner.scala:
##########
@@ -1061,6 +1068,81 @@ class SparkConnectPlanner(session: SparkSession) {
}
}
+ private def transformNumericAggregate(agg: proto.Aggregate): LogicalPlan = {
+ if (!agg.hasInput) {
+ throw InvalidPlanInput("Aggregate needs a plan input")
+ }
+ if (agg.getAggregateExpressionsCount == 0) {
Review Comment:
wouldn't this be caught by the analyzer?
--
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]