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

Incorrect error about subquery not supported (query has no subquery)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Works for Me
    • Impala 2.0
    • Impala 2.2
    • None
    • None

    Description

      The query below should run

      Query: select 1
      FROM alltypestiny
      WHERE true = (1 IN (smallint_col, int_col))
      ERROR: AnalysisException: IN and/or EXISTS subquery predicates are not supported in binary predicates: TRUE = (1 IN (smallint_col, int_col))
      

      this one is good

      Query: select 1
      FROM alltypestiny
      WHERE 1 IN (smallint_col, int_col)
      +---+
      | 1 |
      +---+
      | 1 |
      | 1 |
      | 1 |
      | 1 |
      +---+
      

      Attachments

        Issue Links

          Activity

            People

              dtsirogiannis Dimitris Tsirogiannis
              caseyc casey
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: