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

An Impala query fails with error "ERROR: IllegalStateException: null"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Impala 3.4.0
    • Frontend
    • ghx-label-2

    Description

      Synopsis:
      =========
      An Impala query fails with error "ERROR: IllegalStateException: null"

      Problem:
      ========
      Customer has provided the following reproduction case:

      create table tab1( tdate decimal(10,0) )
         partitioned by (p_tdate int);
       
      select
         *
      from
         (SELECT
             t.*
      FROM
      tab1 t
      INNER JOIN
      (SELECT 20191004 tdate ) d
      WHERE
      t.p_tdate < d.tdate
      ) q
      where
         p_tdate <> tdate
         and P_TDATE = 20191004;
      

      Impala logs shows the following warning:

      W1007 10:04:42.954334 1945974 Expr.java:1075] Not able to analyze after rewrite:
      org.apache.impala.common.AnalysisException: Column/field reference is ambiguous: 'tdate' conjuncts: BinaryPredicate{op=!=, NumericLiteral{value=20191004, type=BIGINT} CastExpr{isImplicit=true, target=BIGINT, SlotRef{path=tdate, type=DECIMAL(10,0), id=1}}} BinaryPredicate{op==, SlotRef{path=p_tdate, type=INT, id=2} NumericLiteral{value=20191004, type=INT}}
      

      Attachments

        Activity

          People

            ychena Yongzhi Chen
            ychena Yongzhi Chen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: