Ferdinand Xu created SPARK-62376:
------------------------------------

             Summary: Reuse RTM’s full-group admission gate for pipelined hash 
shuffles in single-source batch queries
                 Key: SPARK-62376
                 URL: https://issues.apache.org/jira/browse/SPARK-62376
             Project: Spark
          Issue Type: Sub-task
          Components: SQL
    Affects Versions: 5.0.0
            Reporter: Ferdinand Xu


This issue covers the single-source case of M1 in [SPARK-61454]. Enable 
eligible batch SQL and DataFrame queries to reuse the existing Real-Time Mode 
(RTM) shuffle transport *and its full-group admission gate*. A downstream task 
can then consume  records from another executor before the final producer 
finishes.

Add spark.sql.shuffle.distributedPipelined.enabled as a default-off planning 
option. For a read-only query that drains its input, the planner can select a 
chain of single-consumer hash exchanges from one source. The planner checks 
that the chain fits the cluster’s task capacity. At job submission, the 
existing RTM gate checks available slots for the *whole group*. Count the 
source tasks and the reader tasks of each exchange once. For example, a 
two-partition source followed by two exchanges of width two requires *six 
concurrent task slots*.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to