You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/12/27 01:49:12 UTC

[GitHub] [spark] sandeep-katta opened a new pull request #25399: [SPARK-28670][SQL] create function should thrown Exception if the resource is not found

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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org