19kka opened a new pull request #25450: [SPARK-23793][SQL]Handle database names in spark.udf.register() URL: https://github.com/apache/spark/pull/25450 ## What changes were proposed in this pull request? https://issues.apache.org/jira/browse/SPARK-23793 Current version: ```scala spark.udf.register("testdb.testfunc", (a: Int) => a + 1) sql("select testdb.testfunc(1)").show //throw NoSuchFunctionException //org.apache.spark.sql.AnalysisException: Undefined function: 'testfunc'. This function is neither a registered temporary function nor a permanent function registered in the database 'testdb'.; line 1 pos 7 ``` Parser the register function name and database name before `createOrReplaceTempFunction` after this patch, the result will be correctly and has no Exception ## How was this patch tested? Passed existing tests. Manually test for performance.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org