Github user gatorsmile commented on a diff in the pull request: https://github.com/apache/spark/pull/20795#discussion_r177142415 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala --- @@ -1072,8 +1072,17 @@ class SessionCatalog( def functionExists(name: FunctionIdentifier): Boolean = { val db = formatDatabaseName(name.database.getOrElse(getCurrentDatabase)) requireDbExists(db) - functionRegistry.functionExists(name) || - externalCatalog.functionExists(db, name.funcName) + builtinFunctionExists(name) || externalFunctionExists(name) + } + + def builtinFunctionExists(name: FunctionIdentifier): Boolean = { --- End diff -- All the functions in functionRegistry are built-in?
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org