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

   The nits of this round at `d66c1e1b6fc`:
   
   - The class doc states `spark.sql.unionOutputPartitioning` as a requirement 
of the whole rule, the defaults test names the first leg for the repartition 
hint, the enabled doc keeps the eligibility qualifier and adds the keyed keep 
rule, the layouts doc limits target supply to layouts that still route 
undeclared keys by hash, the partialReplay doc states up to two rewrites and 
checks per candidate site for the input-plan replay, the pushDownThroughUnion 
doc lists the joint attempt, the keyed-off joint retry and the per-child 
attempt, and the end-to-end comments credit the hash-only pass (the test is now 
`the hash-only pass falls a site back to the layout it removes`).
   - The removed-layout fallback is pinned by `the replay takes a removed 
layout when no keyed layout exists`, which covers the input-plan replay's 
second attempt; the keyed replay's identical attempt was removed as unreachable 
(a hash layout a child offers is already taken by the pass, a keyed one carries 
HASH_ROUTING, which a scan never matches).
   - The two planning-cost gates are not adopted: the retry and the pass are 
planning-only work, the pass already short-circuits `accepted` on `fastEquals`, 
and with `allowV2Bucketing` off by default neither runs unless a query opts in.
   - The decision challenge's replay cost is disclosed in the `partialReplay` 
doc, and the setting is off by default. The PR description now states that the 
replay over the input plan also runs when the hash-only pass changes nothing or 
fails, and that the whole-plan retry runs only when the replay keeps no site.
   


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