HyukjinKwon commented on a change in pull request #25450: 
[SPARK-23793][SQL]Handle database names in spark.udf.register()
URL: https://github.com/apache/spark/pull/25450#discussion_r321991453
 
 

 ##########
 File path: 
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveUDFSuite.scala
 ##########
 @@ -574,9 +574,10 @@ class HiveUDFSuite extends QueryTest with 
TestHiveSingleton with SQLTestUtils {
       sql(s"CREATE FUNCTION test_avg AS 
'${classOf[GenericUDAFAverage].getName}'")
       checkAnswer(sql("SELECT test_avg(1)"), Row(1.0))
       // temp function containing dots in the name
-      spark.udf.register("default.test_avg", () => { Math.random() + 2})
-      assert(sql("SELECT `default.test_avg`()").head().getDouble(0) >= 2.0)
 
 Review comment:
   Seems like the dot support in its name was intentional.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to