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

IllegalStateException: Illegal reference to non-materialized tuple: tid=3

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • Impala 2.3.0
    • Impala 2.2.7, Impala 2.3.0
    • None
    • None

    Description

      Please see the query below

      [localhost:21000] > select * from (select count(distinct int_col) cd from functional.alltypes) v;
      Query: select * from (select count(distinct int_col) cd from functional.alltypes) v
      ERROR: IllegalStateException: Illegal reference to non-materialized tuple: tid=3
      

      Stacktrace

      I0828 21:58:01.509037 27319 jni-util.cc:177] java.lang.IllegalStateException: Illegal reference to non-materialized tuple: tid=3
        at com.google.common.base.Preconditions.checkState(Preconditions.java:145)              
        at com.cloudera.impala.analysis.SlotRef.toThrift(SlotRef.java:147)                      
        at com.cloudera.impala.analysis.Expr.treeToThriftHelper(Expr.java:488)                  
        at com.cloudera.impala.analysis.Expr.treeToThrift(Expr.java:470)                        
        at com.cloudera.impala.analysis.Expr.treesToThrift(Expr.java:519)                       
        at com.cloudera.impala.planner.PlanFragment.toThrift(PlanFragment.java:280)             
        at com.cloudera.impala.service.Frontend.createExecRequest(Frontend.java:935)            
        at com.cloudera.impala.service.JniFrontend.createExecRequest(JniFrontend.java:147) 
      

      Changing the table to alltypestiny somehow avoids the problem

      [localhost:21000] > select * from (select count(distinct int_col) cd from functional.alltypestiny) v;
      Query: select * from (select count(distinct int_col) cd from functional.alltypestiny) v
      +----+
      | cd |
      +----+
      | 2  |
      +----+
      

      Attachments

        Activity

          People

            alex.behm Alexander Behm
            caseyc casey
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: