Skip to content

Commit cf04fd7

Browse files
committed
add more comments about how to reproduce the bug
1 parent 4d24c5b commit cf04fd7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

datafusion/core/tests/physical_optimizer/enforce_distribution.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3212,6 +3212,7 @@ async fn apply_enforce_distribution_multiple_times() -> Result<()> {
32123212
Arc::new(ProjectionPushdown::new()),
32133213
Arc::new(CoalesceBatches::new()),
32143214
Arc::new(EnforceDistribution::new()), // -- Add enforce distribution rule again
3215+
// The second `EnforceDistribution` should be run before removing `OutputRequirements` to reproduce the bug.
32153216
Arc::new(OutputRequirements::new_remove_mode()),
32163217
Arc::new(ProjectionPushdown::new()),
32173218
Arc::new(LimitPushdown::new()),

0 commit comments

Comments
 (0)