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

Invalid push down predicates in outer join simplification

    XMLWordPrintableJSON

Details

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

    Description

      When set ENABLE_OUTER_JOIN_TO_INNER_TRANSFORMATION = true;

      It may invalid push down the predicate  that is not null rejecting in outer join simplification.

      e.g.
      SELECT COALESCE(jointbl.test_id, testtbl.id, dimtbl.id) AS id, test_zip,testtbl.zip
      FROM functional.jointbl
      FULL OUTER JOIN
      functional.testtbl
      ON jointbl.test_id = testtbl.id
      FULL OUTER JOIN
      functional.dimtbl
      ON coalesce(jointbl.test_id, testtbl.id) = dimtbl.id
      WHERE
      `jointbl`.`test_zip` = 94611 and coalesce(`testtbl`.`zip`, 0) = 0;

       

       

      We can't push down the predicate 'coalesce(testtbl.zip, 0) = 0' to ScanNode since it is not null rejecting

       

       

       

       

      Attachments

        Issue Links

          Activity

            People

              xqhe Xianqing He
              xqhe Xianqing He
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: