Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ulysses-you committed Jul 21, 2020
1 parent e83194f commit b18437c
Showing 1 changed file with 3 additions and 4 deletions.
Expand Up @@ -266,10 +266,9 @@ case class RefreshFunctionCommand(
val func = catalog.getFunctionMetadata(identifier)
catalog.registerFunction(func, true)
} else {
// clear cached function, if not exists throw exception
if (!catalog.unregisterFunction(identifier)) {
throw new NoSuchFunctionException(identifier.database.get, identifier.funcName)
}
// clear cached function and throw exception
catalog.unregisterFunction(identifier)
throw new NoSuchFunctionException(identifier.database.get, identifier.funcName)
}

Seq.empty[Row]
Expand Down

0 comments on commit b18437c

Please sign in to comment.