Github user cloud-fan commented on the issue: https://github.com/apache/spark/pull/19193 I feel it's much simpler to just prohibit this case, as we don't allow nested aggregate function. Users can always use subquery to work around it. Do other databases support window function inside aggregate function? If it's a standard then we should follow.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org