ulysses-you commented on PR #59630:
URL: https://github.com/apache/spark/pull/59630#issuecomment-6813688146

   Thanks @peter-toth. Addressed findings 14-17 in `93f57c7dc0b`.
   
   - 14: a site is skipped when any `operator.children` no longer validates 
after an earlier rewrite in the same pass, and the check runs only once a 
rewrite has happened (`hasPushed`). Your three-branch repro and a fixed-sibling 
shape are tests; the repro throws `PartitioningCollection requires the same 
numPartitions` without the guard, and the fixed-sibling test fails with a 
union-children-only check.
   - 15: a staged branch pins the target only when its shuffling exchange 
carries a rewrite mark or `EnsureRequirements` added it; an unmarked user 
repartition is exempt, so a re-plan can repeat the stack. Reversed `DISTRIBUTE 
BY` and fixed-count branches now assert the executed plan (no union exchange, 3 
shuffles, one pushed exchange); both fail with the old pin. The plan-level pin 
tests use an `ENSURE_REQUIREMENTS` staged branch, and a new test pins that an 
unmarked user stage does not.
   - 16: `usedRemovedLayout` resets at the start of each `rebuildChildren` 
attempt.
   - 17: `apply` is `applyInternal(plan, false)` again.
   
   `PushDownShuffleExchangeThroughUnionSuite` 115/115 and source/test 
scalastyle green.


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