GitHub user yangw1234 opened a pull request: https://github.com/apache/spark/pull/16820
[SPARK-19471] AggregationIterator does not initialize the generated result projection before using it ## What changes were proposed in this pull request? When AggregationIterator generates result projection, it does not call the initialize method of the Projection class. This will cause a runtime NullPointerException when the projection involves nondeterministic expressions. This problem was introduced by #15567. ## How was this patch tested? manual tests You can merge this pull request into a Git repository by running: $ git pull https://github.com/yangw1234/spark proj Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/16820.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 #16820 ---- commit 7ec5ebf867110f1c0105faee36ee6776ad36aab1 Author: wangyang <wangy...@haizhi.com> Date: 2017-02-06T12:07:57Z SPARK-19471 ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org