Commit c2ba087
authored
Avoid skew in Roundrobin repartition (#18880)
## Which issue does this PR close?
- Closes #18883
## Rationale for this change
This makes roundrobin repartition more fairly distributed.
The benchmarks probably don't reflect this as much (maybe on very high
core counts?), as the partitioning already mostly happens at the source
side.
## What changes are included in this PR?
Set start partition based on input partition.
## Are these changes tested?
Existing tests
## Are there any user-facing changes?1 parent fc77be9 commit c2ba087
File tree
2 files changed
+32
-16
lines changed- datafusion
- core/tests/physical_optimizer
- physical-plan/src/repartition
2 files changed
+32
-16
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
878 | 878 | | |
879 | 879 | | |
880 | 880 | | |
881 | | - | |
| 881 | + | |
882 | 882 | | |
883 | | - | |
| 883 | + | |
884 | 884 | | |
885 | 885 | | |
886 | 886 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
385 | 388 | | |
386 | 389 | | |
387 | 390 | | |
| |||
428 | 431 | | |
429 | 432 | | |
430 | 433 | | |
431 | | - | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
432 | 440 | | |
433 | 441 | | |
434 | 442 | | |
435 | 443 | | |
436 | | - | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
437 | 447 | | |
438 | 448 | | |
439 | 449 | | |
| |||
1199 | 1209 | | |
1200 | 1210 | | |
1201 | 1211 | | |
| 1212 | + | |
| 1213 | + | |
1202 | 1214 | | |
1203 | | - | |
1204 | | - | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
1205 | 1221 | | |
1206 | 1222 | | |
1207 | 1223 | | |
| |||
1865 | 1881 | | |
1866 | 1882 | | |
1867 | 1883 | | |
1868 | | - | |
1869 | | - | |
1870 | | - | |
1871 | | - | |
1872 | | - | |
1873 | | - | |
1874 | | - | |
1875 | | - | |
1876 | | - | |
1877 | | - | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
1878 | 1894 | | |
1879 | 1895 | | |
1880 | 1896 | | |
| |||
0 commit comments