Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-13354

Push filter throughout outer join when the condition can filter out empty row

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • SQL
    • None

    Description

      For a query

      select * from a left outer join b on a.a = b.a where b.b > 10
      
      

      The condition `b.b > 10` will filter out all the row that the b part of it is empty.

      In this case, we should use Inner join, and push down the filter into b.

      Attachments

        Issue Links

          Activity

            People

              davies Davies Liu
              davies Davies Liu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: