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

Failed to resolve column ref in uncorrelated subquery

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 2.1
    • Impala 2.1
    • None
    • None

    Description

      The query below is a valid uncorrelated subquery but Impala says a column is ambiguous

      Query: select 1 FROM alltypestiny WHERE int_col IN (
      SELECT 1 AS int_col FROM alltypesagg)
      ERROR: AnalysisException: unqualified column reference 'int_col' is ambiguous
      

      Postgresql

      functional=# select 1 FROM alltypestiny WHERE int_col IN (
      functional(# SELECT 1 AS int_col FROM alltypesagg) LIMIT 1;
       ?column? 
      ----------
              1
      (1 row)
      

      Attachments

        Activity

          People

            caseyc casey
            caseyc casey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: