PavithraRamachandran opened a new pull request #25394: [SPARK-28671][SQL]when a 
non exsistent permanent function is dropped,NoSuchPermanentFunctionException is 
thrown
URL: https://github.com/apache/spark/pull/25394
 
 
   
   ## 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.
   
   
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to