Skip to content

Commit

Permalink
Wwhen a permanent function is dropped, generic nosuchFunction was thr…
Browse files Browse the repository at this point in the history
…own if the function no more exsist, but incase of temporary proper msg was shown saying temporary function does not exsist. Correcting the error message while dropping Permanent function.
  • Loading branch information
PavithraRamachandran committed Aug 9, 2019
1 parent 5368eaa commit 234235c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -1114,7 +1114,7 @@ class SessionCatalog(
}
externalCatalog.dropFunction(db, name.funcName)
} else if (!ignoreIfNotExists) {
throw new NoSuchFunctionException(db = db, func = identifier.toString)
throw new NoSuchPermanentFunctionException(db = db, func = identifier.toString)
}
}

Expand Down
Expand Up @@ -1429,7 +1429,7 @@ abstract class SessionCatalogSuite extends AnalysisTest {
catalog.dropFunction(
FunctionIdentifier("something", Some("unknown_db")), ignoreIfNotExists = false)
}
intercept[NoSuchFunctionException] {
intercept[NoSuchPermanentFunctionException] {
catalog.dropFunction(FunctionIdentifier("does_not_exist"), ignoreIfNotExists = false)
}
catalog.dropFunction(FunctionIdentifier("does_not_exist"), ignoreIfNotExists = true)
Expand Down

0 comments on commit 234235c

Please sign in to comment.