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:
Steve Carlin
2021-12-08 11:37:53 -08:00
committed by Aman Sinha
parent 5cd2b2b355
commit 504e0d0012
8 changed files with 36 additions and 5 deletions

View File

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