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

Unsupported subquery in select list throws IllegalStateException instead of AnalysisException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Impala 4.0.0
    • Frontend
    • None

    Description

      [localhost.EXAMPLE.COM:21000] default> explain select year, month, (year = 2010 and month > 11)  or min(id) in (select int_col from functional.alltypestiny) from functional.alltypes;
      Query: explain select year, month, (year = 2010 and month > 11)  or min(id) in (select int_col from functional.alltypestiny) from functional.alltypes
      ERROR: IllegalStateException: Invariant violated: Only subqueries that are guaranteed to return a single row are supported: (`year` = 2010 AND `month` > 11) OR min(id) IN (SELECT int_col FROM functional.alltypestiny)
      

      Attachments

        Activity

          People

            superdupershant Shant Hovsepian
            tarmstrong Tim Armstrong
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: