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

reuse Exchange failed

    XMLWordPrintableJSON

Details

    Description

      PR available:https://github.com/apache/spark/pull/34858

      use case:query2 in TPC-DS.There are three exchange subquery will scan the same table "store_sales" in logical plan,these subqueries meet exchange reuse rule.I confirm that the exchange use rule  work in physical plan.But when spark execute the physical plan,I find out 

      exchange reuse failed,reused exchange has been executed twice.

      physical plan:

       

      execution stages:

       

      Attachments

        1. execution stage(1)-query2.png
          144 kB
          junbiao chen
        2. execution stage-query2.png
          63 kB
          junbiao chen
        3. physical plan-query2.png
          194 kB
          junbiao chen

        Activity

          People

            Unassigned Unassigned
            dahaishuantuoba junbiao chen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: