You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/01/07 09:48:21 UTC
[GitHub] southernriver opened a new pull request #23485: [SPARK-26334][SQL]
NullPointerException in CallMethodViaReflection when we apply reflect
function for empty field
southernriver opened a new pull request #23485: [SPARK-26334][SQL] NullPointerException in CallMethodViaReflection when we apply reflect function for empty field
URL: https://github.com/apache/spark/pull/23485
## What changes were proposed in this pull request?
As the description in [SPARK-26334](https://issues.apache.org/jira/browse/SPARK-26334),When we apply reflect function to empty field, it will always lead to NullPointerException. We can catch the NPE when invocation is triggered by reflect function.
## How was this patch tested?
manual tests!
In the table shown below, for field `url`, some values are initialized to NULL .

When we apply reflect function to `url` ,
before fix:

after fix:

Please review http://spark.apache.org/contributing.html before opening a pull request.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org