-
Notifications
You must be signed in to change notification settings - Fork 29.1k
[SPARK-28671][SQL] Throw NoSuchPermanentFunctionException for a non-exsistent permanent function in dropFunction/alterFunction #25394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…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.
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala
Show resolved
Hide resolved
|
ok to test |
|
Test build #108900 has finished for PR 25394 at commit
|
maropu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc: @dongjoon-hyun
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala
Show resolved
Hide resolved
…wn 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.
|
Test build #109187 has finished for PR 25394 at commit
|
|
retest this please |
|
Test build #109204 has finished for PR 25394 at commit
|
|
Thanks! Merged to master |
|
@PavithraRamachandran Thanks for your contribution! I added you to the Spark contribution group to assign SPARK-28671 to you. |
What changes were proposed in this pull request?
Before Fix
When a non existent permanent function is dropped, generic NoSuchFunctionException was thrown.- which printed "This function is neither a registered temporary function nor a permanent function registered in the database" .
This creates a ambiguity when a temp function in the same name exist.
After Fix
NoSuchPermanentFunctionException will be thrown, which will print
"NoSuchPermanentFunctionException:Function not found in database "
How was this patch tested?
Unit test was run and corrected the UT.