ulysses-you commented on PR #60118: URL: https://github.com/apache/spark/pull/60118#issuecomment-6731587427
Thanks @dongjoon-hyun and @peter-toth for the review! Addressed in 7dd9f36cbdc: - The claim's keys take the nullability of the join's output. Without it, a checkpointed FULL OUTER join over non-nullable keys could fold the recorded `coalesce(ak, bk)` to `ak`, and `groupBy(ak)` skipped its exchange and split the NULL group. A new test covers plain and nested keys. - Each side's hash members are filtered by the NULL-on-padding check once, the right side's partitioning is evaluated once, an unknown hash partitioning kind gives no claim, and the unreachable single-member arm is gone. - Test cleanups as suggested: `checkAnswer` against a single-partition answer, shared helpers, and the renamed test. The per-preparation conf snapshot is filed as SPARK-61209, with the `expressionProjectionCandidateLimit` union shape listed. On the trade-offs raised in the [AI review](https://github.com/apache/spark/pull/60118#pullrequestreview-5796345134) and by @peter-toth: the claim is kept wherever a parent accepts it, as Spark already does for inner and one-sided outer join outputs. A bucketed partner with fewer buckets can then be the side shuffled, a consumer of the merged key runs in the join's stage, so AQE does not re-plan or skew-split it, and a union of such legs becomes partitioning-aware, which `spark.sql.unionOutputPartitioning` turns off. Results are unchanged in all of these, and the PR description now lists the AQE ones. -- 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]
