Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
Impala 2.5.0
Description
Right now, loading a UDF with a missing jar will give the following exception.
E0829 15:04:21.130985 19471 CatalogServiceCatalog.java:508] Skipping function load: rank_2 Java exception follows: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:635) at java.util.ArrayList.get(ArrayList.java:411) at com.cloudera.impala.catalog.CatalogServiceCatalog.extractFunctions(CatalogServiceCatalog.java:402) at com.cloudera.impala.catalog.CatalogServiceCatalog.loadJavaFunctions(CatalogServiceCatalog.java:503) at com.cloudera.impala.catalog.CatalogServiceCatalog.reset(CatalogServiceCatalog.java:559) at com.cloudera.impala.service.JniCatalog.<init>(JniCatalog.java:97)
We can include a check for this and have a meaningful error message to improve supportability.