GitHub user cloud-fan opened a pull request:
https://github.com/apache/spark/pull/16404
[SPARK-18969][SQL] Support grouping by nondeterministic expressions
## What changes were proposed in this pull request?
Currently nondeterministic expressions are allowed in `Aggregate`(see the
[comment](https://github.com/apache/spark/blob/v2.0.2/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/CheckAnalysis.scala#L249-L251)),
but the `PullOutNondeterministic` analyzer rule failed to handle `Aggregate`,
this PR fixes it.
## How was this patch tested?
a new test suite
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cloud-fan/spark groupby
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/16404.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 #16404
----
commit 67f032b6ab7b23aecf432b13a6f455582754fc98
Author: Wenchen Fan <[email protected]>
Date: 2016-12-26T10:24:07Z
Support grouping by nondeterministic expressions
----
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]