Skip to content

Conversation

@PavithraRamachandran
Copy link
Contributor

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.

…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.
@maropu
Copy link
Member

maropu commented Aug 10, 2019

ok to test

@SparkQA
Copy link

SparkQA commented Aug 10, 2019

Test build #108900 has finished for PR 25394 at commit 234235c.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@maropu maropu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@maropu maropu changed the title [SPARK-28671][SQL]when a non exsistent permanent function is dropped,NoSuchPermanentFunctionException is thrown [SPARK-28671][SQL] Throw NoSuchPermanentFunctionException for a non-exsistent permanent function in dropFunction Aug 15, 2019
…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.
@SparkQA
Copy link

SparkQA commented Aug 16, 2019

Test build #109187 has finished for PR 25394 at commit ee90d02.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member

retest this please

@SparkQA
Copy link

SparkQA commented Aug 16, 2019

Test build #109204 has finished for PR 25394 at commit ee90d02.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@maropu maropu changed the title [SPARK-28671][SQL] Throw NoSuchPermanentFunctionException for a non-exsistent permanent function in dropFunction [SPARK-28671][SQL] Throw NoSuchPermanentFunctionException for a non-exsistent permanent function in dropFunction/alterFunction Aug 16, 2019
@maropu
Copy link
Member

maropu commented Aug 16, 2019

Thanks! Merged to master

@maropu maropu closed this Aug 16, 2019
@maropu
Copy link
Member

maropu commented Aug 16, 2019

@PavithraRamachandran Thanks for your contribution! I added you to the Spark contribution group to assign SPARK-28671 to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants