MaxGekk commented on code in PR #38572:
URL: https://github.com/apache/spark/pull/38572#discussion_r1018796301
##########
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/AnalysisErrorSuite.scala:
##########
@@ -257,11 +257,12 @@ class AnalysisErrorSuite extends AnalysisTest {
CatalystSqlParser.parsePlan("SELECT aggregate(array(1, 2, 3), 0, (acc, x)
-> acc + x) " +
"IGNORE NULLS"), "Function aggregate does not support IGNORE NULLS" ::
Nil)
- errorTest(
- "nested aggregate functions",
+ errorClassTest(
+ name = "nested aggregate functions",
testRelation.groupBy($"a")(
Max(Count(Literal(1)).toAggregateExpression()).toAggregateExpression()),
- "not allowed to use an aggregate function in the argument of another
aggregate function." :: Nil
+ errorClass = "NESTED_AGGREGATE_FUNCTION",
+ messageParameters = Map()
Review Comment:
nit: Map() -> Map.empty
--
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]