Skip to content

Commit

Permalink
remove unnecessary param
Browse files Browse the repository at this point in the history
  • Loading branch information
ulysses-you committed Jul 14, 2020
1 parent a956144 commit 711656d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -1344,8 +1344,8 @@ class SessionCatalog(
/**
* Unregister a temporary or permanent function from a session-specific [[FunctionRegistry]]
*/
def unregisterFunction(name: FunctionIdentifier, ignoreIfNotExists: Boolean): Unit = {
if (!functionRegistry.dropFunction(name) && !ignoreIfNotExists) {
def unregisterFunction(name: FunctionIdentifier): Unit = {
if (!functionRegistry.dropFunction(name)) {
throw new NoSuchFunctionException(
formatDatabaseName(name.database.getOrElse(currentDb)), name.funcName)
}
Expand Down
Expand Up @@ -267,7 +267,7 @@ case class RefreshFunctionCommand(
catalog.registerFunction(func, true)
} else if (catalog.isRegisteredFunction(identifier)) {
// clear cached function.
catalog.unregisterFunction(identifier, true)
catalog.unregisterFunction(identifier)
} else {
throw new NoSuchFunctionException(identifier.database.get, functionName)
}
Expand Down

0 comments on commit 711656d

Please sign in to comment.