maropu commented on a change in pull request #29453: URL: https://github.com/apache/spark/pull/29453#discussion_r472574215
########## File path: sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLSuite.scala ########## @@ -3046,15 +3049,21 @@ abstract class DDLSuite extends QueryTest with SQLTestUtils { } withUserDefinedFunction("func1" -> false) { + val func = FunctionIdentifier("func1", Some("default")) + assert(!spark.sessionState.catalog.isRegisteredFunction(func)) intercept[NoSuchFunctionException] { sql("REFRESH FUNCTION func1") } + assert(!spark.sessionState.catalog.isRegisteredFunction(func)) - val func = FunctionIdentifier("func1", Some("default")) sql("CREATE FUNCTION func1 AS 'test.org.apache.spark.sql.MyDoubleAvg'") assert(!spark.sessionState.catalog.isRegisteredFunction(func)) sql("REFRESH FUNCTION func1") assert(spark.sessionState.catalog.isRegisteredFunction(func)) + intercept[NoSuchFunctionException] { Review comment: ditto ---------------------------------------------------------------- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org