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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
