sandeep-katta opened a new pull request #25399: [SPARK-28670][SQL] create 
function should thrown Exception if the resource is not found
URL: https://github.com/apache/spark/pull/25399
 
 
   ## What changes were proposed in this pull request?
   
   Create temporary or permanent function it should throw AnalysisException if 
the resource is not found. Need to keep behavior consistent across permanent 
and temporary functions.
   
   ## How was this patch tested?
   
   Added UT and also tested manually
   
   **Before Fix**
   If the UDF resource is not present then on creation of temporary function it 
throws AnalysisException where as for permanent function it does not throw. 
Permanent funtcion  throws AnalysisException only after select operation is 
performed.
   
   **After Fix**
   
   For temporary and permanent function check for the resource, if the UDF 
resource is not found then throw AnalysisException
   
   
![rt](https://user-images.githubusercontent.com/35216143/62781519-d1131580-bad5-11e9-9d58-69e65be86c03.png)
   

----------------------------------------------------------------
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