beliefer commented on a change in pull request #27476:
[SPARK-27986][SQL][followup] window aggregate function with filter predicate is
not supported
URL: https://github.com/apache/spark/pull/27476#discussion_r375912786
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/CheckAnalysis.scala
##########
@@ -308,6 +308,9 @@ trait CheckAnalysis extends PredicateHelper {
case a: AggregateExpression if a.isDistinct =>
e.failAnalysis(
"distinct aggregates are not allowed in observed metrics,
but found: " + s.sql)
+ case a: AggregateExpression if a.filter.isDefined =>
+ e.failAnalysis("aggregates with filter predicate are not
allowed in " +
Review comment:
I lost the information. Thank you.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]