Repository navigation
Conversation
Adds an advisory workflow that mutates only the lines a PR changes. It tests each mutant against its own package's tests, then retests the survivors against the datafusion core tests and sqllogictest, and lists mutants that no test caught in the job summary. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TAeJdSfRAQtKMjuAtTDnuH (cherry picked from commit e7ab040)
…pache#26716) ## Which issue does this PR close? - Part of apache#26299 ## Rationale for this change Step 1 from the issue. The per-child closure in `ensure_distribution_with_stats` works out several flags inline (`allow_subset_satisfy_partitioning`, `add_roundrobin`, `needs_repartition`, ...). They depend on each other and can only be tested through full plan tests right now. This moves them into one place so they can be unit tested. No behaviour change. ## What changes are included in this PR? - `ChildPolicyConfig`: the settings that are the same for every child. - `ChildPolicy::new`: works out the flags for one child. The partial aggregate check (including the `partial_aggregate_input_keeps_groups_local` case from apache#26449) is passed as a closure, so it still only runs when it did before. - `ChildPolicy::needs_hash_repartition`: the repartition decision from the hash arm. - The closure now uses these. The rest of the function is unchanged. ## What is the testing strategy for this PR? New unit tests in `enforce_distribution.rs` for the flags. The existing `physical_optimizer` tests and sqllogictests pass without changes. <!-- screenshot: cargo test -p datafusion-physical-optimizer --lib -- enforce_distribution --> ## Are there any user-facing changes? No (cherry picked from commit 4c7b307)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TAeJdSfRAQtKMjuAtTDnuH (cherry picked from commit b7282e6)
Owner
Author
|
Fork-only test of the mutants workflow; done. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Throwaway PR inside the fork to exercise .github/workflows/mutants.yml. Expected: green.