XiDuo You created SPARK-61785:
---------------------------------

             Summary: Support keyed layouts in the union shuffle push-down
                 Key: SPARK-61785
                 URL: https://issues.apache.org/jira/browse/SPARK-61785
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 5.0.0
            Reporter: XiDuo You


Retain V2 keyed layouts under 
spark.sql.adaptive.pushDownShuffleThroughUnion.allowV2Bucketing.enabled. A 
keyed target keeps the union children that already report the picked domain and 
lays the others out on it, recording that KeyGroupedPartitioner routed their 
undeclared keys by hash; the grouped union then holds the full-key claim only 
(ROUTING_LOST). No child is shuffled off a domain it declares, and the 
candidate ranking picks between a keyed and a hash target by what each keeps.

A co-partitioned sibling drops the requirement exchange it was given when its 
own child answers the sibling's distribution, so the pair can line up on the 
keyed domain; a child whose keys repeat is settled with the grouping node the 
planner would add.




--
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