GitHub user maryannxue opened a pull request:
https://github.com/apache/spark/pull/21720
[SPARK-24163][SPARK-24164][SQL] Support column list as the pivot column in
Pivot
## What changes were proposed in this pull request?
1. Bug fixing in Analyzer for Pivot node.
2. Extend the Parser to enable parsing a column list as the pivot column.
3. Extend the Parser and the Pivot node to enable parsing complex
expressions with aliases as the pivot value.
4. Add type check and constant check in Analyzer for Pivot node.
## How was this patch tested?
Add tests in pivot.sql
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/maryannxue/spark spark-24164
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/21720.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 #21720
----
commit fd235025a2099aa1d239f4b84014301ec41c815d
Author: maryannxue <maryannxue@...>
Date: 2018-07-03T20:54:46Z
spark-24164
commit 942a30dfc0fd070c067aa8d157075909610d3aaa
Author: maryannxue <maryannxue@...>
Date: 2018-07-05T22:23:59Z
revert accidental changes
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]