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

Subqueries in OR predicates are not supported

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: Impala 2.4.0
    • Fix Version/s: None
    • Component/s: Frontend
    • Labels:

      Description

      The following query doesn't seem to work:

      select * from table_a a where id in (select id from table_a where id =2) OR a.id = 1;

      ERROR: AnalysisException: Subqueries in OR predicates are not supported

      The same query works if I replace OR with AND operator.
      This is an un-correlated subquery. Basically does the same thing as a join, so the query engine should be able to execute this.
      Is there a specific reason this is not supported or this is a known bug?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ssingh15_impala_ee6c Shiny Singh
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: