Github user kevinyu98 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20795#discussion_r179238708
  
    --- 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 --
    
    @gatorsmile Sorry for the delay. I was working on something else. Thanks 
very much for the help, I will add these two new APIs in `SessionCatalog` and 
add test cases in `SessionCatalogSuite` 


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to