Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-5562

Query involving nested array and limit 0 hits IllegalStateException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • Impala 2.9.0
    • Impala 2.10.0
    • Frontend

    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.

      Attachments

        Activity

          People

            alex.behm Alexander Behm
            alex.behm Alexander Behm
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: