GitHub user aray opened a pull request:
https://github.com/apache/spark/pull/17226
[SPARK-19882][SQL] Pivot with null as a distinct pivot value throws NPE
## What changes were proposed in this pull request?
Allows null values of the pivot column to be included in the pivot values
list without throwing NPE
Note this PR was made as an alternative to #17224 but preserves the two
phase aggregate operation that is needed for good performance.
## How was this patch tested?
Additional unit test
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/aray/spark pivot-null
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/17226.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 #17226
----
commit 18b74a7520ac3a019cfb6ceb993a284677178c31
Author: Andrew Ray <[email protected]>
Date: 2017-03-09T18:56:25Z
fix
----
---
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]