GitHub user aokolnychyi opened a pull request: https://github.com/apache/spark/pull/21473
[SPARK-21896][SQL] Fix StackOverflow caused by window functions inside aggregate functions ## What changes were proposed in this pull request? This PR explicitly prohibits window functions inside aggregates. Currently, this will cause StackOverflow during analysis. See PR #19193 for previous discussion. ## How was this patch tested? This PR comes with a dedicated unit test. You can merge this pull request into a Git repository by running: $ git pull https://github.com/aokolnychyi/spark fix-stackoverflow-window-funcs Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/21473.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #21473 ---- commit 646a96d75c12b2e3c6886bc0cc9743e7ba838c8a Author: aokolnychyi <anton.okolnychyi@...> Date: 2018-05-31T10:58:29Z [SPARK-21896][SQL] Fix StackOverflow caused by window functions inside aggregate functions ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org