You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are getting NullPointerException while creating temporary function -
Query-
snSession.sql("CREATE temporary FUNCTION strnglen as com.some_package.StringUDF RETURNS Integer USING JAR '<UDF_JAR_PATH>/string_udf2.jar'")
Output-
java.lang.NullPointerException
at org.apache.spark.sql.internal.SnappySessionCatalog.loadFunctionResources(SnappySessionCatalog.scala
at org.apache.spark.sql.execution.command.CreateFunctionCommand.run(functions.scala:59)
at org.apache.spark.sql.execution.command.ExecutedCommandExec.sideEffectResult$lzycompute(commands.scala:58)
at org.apache.spark.sql.execution.command.ExecutedCommandExec.sideEffectResult(commands.scala:56)
at org.apache.spark.sql.execution.command.ExecutedCommandExec.doExecute(commands.scala:74)
at org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:114)
at org.apache.spark.sql.execution.SparkPlan$$anonfun$execute$1.apply(SparkPlan.scala:114)
at org.apache.spark.sql.execution.SparkPlan$$anonfun$executeQuery$1.apply(SparkPlan.scala:135)
I found that issue is coming due to currentFunctionIdentifier initialization in case of temporary functions.
I have found its fix and will raise the pull request for review.
The text was updated successfully, but these errors were encountered:
We are getting NullPointerException while creating temporary function -
Query-
snSession.sql("CREATE temporary FUNCTION strnglen as com.some_package.StringUDF RETURNS Integer USING JAR '<UDF_JAR_PATH>/string_udf2.jar'")
Output-
I found that issue is coming due to currentFunctionIdentifier initialization in case of temporary functions.
I have found its fix and will raise the pull request for review.
The text was updated successfully, but these errors were encountered: