Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
Impala 2.9.0
-
ghx-label-7
Description
Queries involving nested collections (array and map) and limit 0 hit a Preconditions check.
explain select * from tpch_nested_parquet.customer c, c.c_orders limit 0;
ERROR: IllegalStateException: null
Stack:
I0622 11:26:44.929339 23672 jni-util.cc:176] java.lang.IllegalStateException at com.google.common.base.Preconditions.checkState(Preconditions.java:129) at org.apache.impala.analysis.TupleDescriptor.recomputeMemLayout(TupleDescriptor.java:239) at org.apache.impala.planner.SingleNodePlanner.unmarkCollectionSlots(SingleNodePlanner.java:242) at org.apache.impala.planner.SingleNodePlanner.createEmptyNode(SingleNodePlanner.java:217) at org.apache.impala.planner.SingleNodePlanner.createQueryPlan(SingleNodePlanner.java:252) at org.apache.impala.planner.SingleNodePlanner.createSingleNodePlan(SingleNodePlanner.java:149) at org.apache.impala.planner.Planner.createPlan(Planner.java:90) at org.apache.impala.service.Frontend.createExecRequest(Frontend.java:1008) at org.apache.impala.service.Frontend.createExecRequest(Frontend.java:1104) at org.apache.impala.service.JniFrontend.createExecRequest(JniFrontend.java:156)
Workaround
Use LIMIT 1 instead of LIMIT 0.