GitHub user bkrieger opened a pull request:
https://github.com/apache/spark/pull/21508
[SPARK-24488] [SQL] Fix issue when generator is aliased multiple times
## What changes were proposed in this pull request?
Currently, the Analyzer throws an exception if your try to nest a
generator. However, it special cases generators "nested" in an alias, and
allows that. If you try to alias a generator twice, it is not caught by the
special case, so an exception is thrown.
This PR trims the unnecessary, non-top-level aliases, so that the generator
is allowed.
## How was this patch tested?
new tests in AnalysisSuite.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/bkrieger/spark bk/SPARK-24488
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/21508.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 #21508
----
commit 44ae34d0387f763936cddeceae64ee98b7bb279f
Author: Brandon Krieger <bkrieger@...>
Date: 2018-06-07T20:09:09Z
SPARK-24488
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]