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

Constant SELECT clauses do not work in subqueries

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 0.5
    • Impala 1.0
    • None
    • None

    Description

      [localhost:21000] > select * from (select 'a' `x`) x;
      Query: select * from (select 'a' `x`) x
      ERROR: java.lang.IllegalStateException
              at com.google.common.base.Preconditions.checkState(Preconditions.java:129)
              at com.cloudera.impala.analysis.InlineViewRef.getMaterializedTupleIds(InlineViewRef.java:96)
              at com.cloudera.impala.planner.Planner.createSelectPlan(Planner.java:481)
              at com.cloudera.impala.planner.Planner.createQueryPlan(Planner.java:457)
              at com.cloudera.impala.planner.Planner.createPlanFragments(Planner.java:92)
              at com.cloudera.impala.service.Frontend.createExecRequest(Frontend.java:255)
              at com.cloudera.impala.service.JniFrontend.createExecRequest(JniFrontend.java:89)
      

      This would be very useful for, e.g., materialising a tiny dimension table on an ad-hoc basis.

      Attachments

        Activity

          People

            alex.behm Alexander Behm
            henryr Henry Robinson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: