HyukjinKwon commented on issue #23485: [SPARK-26334][SQL] NullPointerException in CallMethodViaReflection when we apply reflect function for empty field URL: https://github.com/apache/spark/pull/23485#issuecomment-451881657 As I said in the JIRA, the method itself already throws an NPE: ``` scala> java.net.URLDecoder.decode(null, "UTF-8") java.lang.NullPointerException at java.net.URLDecoder.decode(URLDecoder.java:136) ... 29 elided ``` So, the exception is delegated from its original method, which pretty makes sense. Looks Hive is tolerant for the exceptions thrown from the method but Spark doesn't necessarily follow Hive. Let's don't fix it.
---------------------------------------------------------------- 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]
