mirror of
https://github.com/apache/impala.git
synced 2026-01-24 15:00:45 -05:00
IMPALA-11056: Create option to fail query on Java UDF exceptions
This commit will create a new query option, "abort_java_udf_on_exception". The current and default behavior is that when the Java UDF throws an exception, a warning is logged and the function returns NULL. If the query option is set to true, the query will fail. Change-Id: Ifece20cf16a6575f1c498238f754440e870e2ce9 Reviewed-on: http://gerrit.cloudera.org:8080/18080 Reviewed-by: Kurt Deschler <kdeschle@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Reviewed-by: Aman Sinha <amsinha@cloudera.com>
This commit is contained in:
@@ -104,6 +104,12 @@ boolean
|
||||
NULL
|
||||
====
|
||||
---- QUERY
|
||||
set abort_java_udf_on_exception=true;
|
||||
select throws_exception() from functional.alltypestiny;
|
||||
---- CATCH
|
||||
Test exception
|
||||
====
|
||||
---- QUERY
|
||||
select throws_exception() from functional.alltypestiny;
|
||||
---- TYPES
|
||||
boolean
|
||||
|
||||
Reference in New Issue
Block a user