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

   Thanks @dongjoon-hyun. Addressed the review in `eb1baa2378b`.
   
   - 1: pre-existing `UnionExec` bug (SPARK-61211, #60271); this rule made it 
reachable for a union with an extra branch. #60271 drops unmapped members in 
`prepareOutputPartitioning`, which this rule consumes. Verified locally with 
that change applied: the `keys` / `mapGroups` / `range(5)` repro returns 11 
rows with `rn = 1` instead of 20. The duplicate-exprId guards stay because 
`rebind` is ambiguous when the union's own output repeats, which #60271 does 
not change.
   - 2: `hasPushedShuffle` counts only exchanges the rewrite marked. A union 
over requirement shuffles the rule did not create, and a branch served by reuse 
of an unmarked stage, cost nothing; both listed shapes no longer count.
   - 3: a staged branch pins the target; covered by plan-level and end-to-end 
tests where the target really flips.
   - 4: one effective enablement feeds `EnsureRequirements`, the rule and 
`SimpleCostEvaluator`.
   - 5: a rejected proposal is retried once on the removed exchange's layout; 
SMJ + window test.
   - 6: `maxTargetPartitionNumFactor` bounds the target count.
   - 7, 8: the suite mixes in `AdaptiveSparkPlanHelper`; the custom-evaluator 
test builds a real adaptive plan.
   - 12: the subquery gate is derived from the query plan and the pattern list 
is shared.
   - 13, 14, 15: return signature and single-site fallback, deferred 
shared-exchange scan, shared `matchesHashLayout`.
   - 9, 10, 11: kept as designed: query-wide subquery gate, reducers above the 
union, and the `PartitioningOrigin` record, which also holds elided user 
repartitions below the root.
   
   `PushDownShuffleExchangeThroughUnionSuite` 111/111 and source/test 
scalastyle are green at this head.
   


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