Github user kevinyu98 commented on a diff in the pull request: https://github.com/apache/spark/pull/20795#discussion_r176249337 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala --- @@ -1076,6 +1076,16 @@ class SessionCatalog( externalCatalog.functionExists(db, name.funcName) } + def buildinFunctionExists(name: FunctionIdentifier): Boolean = { + functionRegistry.functionExists(name) + } + + def externalFunctionExists(name: FunctionIdentifier): Boolean = { + val db = formatDatabaseName(name.database.getOrElse(getCurrentDatabase)) + requireDbExists(db) + externalCatalog.functionExists(db, name.funcName) + } + --- End diff -- ok, I will change.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org