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

Collapsing operator reordering and constant folding into a single batch to push down the single side.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3.1
    • 1.5.0
    • SQL
    • None

    Description

      SQL:

      select * from tableA join tableB on (a > 3 and b = d) or (a > 3 and b = e)
      

      Plan before modify

      == Optimized Logical Plan ==
      Project [a#293,b#294,c#295,d#296,e#297]
       Join Inner, Some(((a#293 > 3) && ((b#294 = d#296) || (b#294 = e#297))))
        MetastoreRelation default, tablea, None
        MetastoreRelation default, tableb, None
      

      Plan after modify

      == Optimized Logical Plan ==
      Project [a#293,b#294,c#295,d#296,e#297]
       Join Inner, Some(((b#294 = d#296) || (b#294 = e#297)))
        Filter (a#293 > 3)
         MetastoreRelation default, tablea, None
        MetastoreRelation default, tableb, None
      

      Attachments

        Activity

          People

            DoingDone9 Zhongshuai Pei
            DoingDone9 Zhongshuai Pei
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: