Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Impala 4.0.0
    • Frontend
    • ghx-label-10

    Description

      A simple case of IMPALA-5226 with a simple rewrite is an IN predicate. We can directly rewrite it into a left outer join

      WHERE  <condition> OR (x IN (select y ...))
      

      Can be transformed into

      LEFT OUTER JOIN (select distinct y ...) v on x = v.y
      ...
      WHERE <condition> OR v.y IS NOT NULL
      

      This pattern appears in TPC-DS query 45.

      Attachments

        Activity

          People

            tarmstrong Tim Armstrong
            tarmstrong Tim Armstrong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: