GitHub user ueshin opened a pull request:
https://github.com/apache/spark/pull/18524
[SPARK-21300][SQL] ExternalMapToCatalyst should null-check map key prior to
converting to internal value.
## What changes were proposed in this pull request?
`ExternalMapToCatalyst` should null-check map key prior to converting to
internal value to throw an appropriate Exception instead of something like NPE.
## How was this patch tested?
Added a test and existing tests.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ueshin/apache-spark issues/SPARK-21300
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/18524.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 #18524
----
commit d93f5abdf1c56c618838f6797b94e4b2a86217cd
Author: Takuya UESHIN <[email protected]>
Date: 2017-07-04T06:59:54Z
Modify ExternalMapToCatalyst to null-check map key prior to converting to
internal value.
----
---
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]