Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Impala 2.5.0
Description
Repro:
create external table if not exists at ( id string, bool_col string, i string, s string, ic string, bi string, f string, d string, da string, sc string, ts string) partitioned by (year int, month int) location '/test-warehouse/alltypesrror';
and do this twice:
alter table at add if not exists partition (year=2000, month=1);
E0524 10:28:53.734863 29263 ImpaladCatalog.java:134] Error adding catalog object: null
Java exception follows:
java.lang.NullPointerException
at com.cloudera.impala.catalog.ImpaladCatalog.addTable(ImpaladCatalog.java:350)
at com.cloudera.impala.catalog.ImpaladCatalog.addCatalogObject(ImpaladCatalog.java:246)
at com.cloudera.impala.catalog.ImpaladCatalog.updateCatalog(ImpaladCatalog.java:132)
at com.cloudera.impala.service.Frontend.updateCatalogCache(Frontend.java:227)
at com.cloudera.impala.service.JniFrontend.updateCatalogCache(JniFrontend.java:161)
I think impalad does not handle catalog update response 100% correctly, but this should not affect any other queries. (everything is fine)