ulysses-you commented on code in PR #60553:
URL: https://github.com/apache/spark/pull/60553#discussion_r4598870277


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/PushDownShuffleExchangeThroughUnion.scala:
##########
@@ -131,6 +154,10 @@ case class PushDownShuffleExchangeThroughUnion(
         
SQLConf.PUSH_DOWN_SHUFFLE_THROUGH_UNION_MAX_TARGET_PARTITION_NUM_FACTOR),
       keepJoinBranches =
         
conf.getConf(SQLConf.PUSH_DOWN_SHUFFLE_THROUGH_UNION_KEEP_JOIN_BRANCHES_ENABLED),
+      allowV2Bucketing = conf.getConf(

Review Comment:
   A rejected proposal is no longer settled by the whole-plan retry alone. The 
rule now replays it one site at a time over the input plan: a site the whole 
plan rejects takes the layout of the exchange it removes, or keeps that 
exchange when no child offers the layout, and every other site keeps the 
proposal. A hash-only union whose target is not the exchange it removes 
therefore keeps the push-down it has on the base branch. 
`spark.sql.adaptive.pushDownShuffleThroughUnion.partialReplay.enabled` (on by 
default) turns the replay off and restores the whole-plan retry on the removed 
layouts.
   
   Pinned in 3b7f95c6c1f: the connector test `SPARK-61785: two keyed sites that 
cannot pair keep the layouts they remove` (both switch arms), the connector 
test `SPARK-61785: one pass keeps a keyed site beside a hash site` with the 
switch off, and the plan-level `SPARK-61785: a failed keyed target reverts only 
its own site`.
   
   Classification: regression against the base branch that the keyed targets 
introduced, fixed here.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to