You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The benchmarks shipped in that PR have several cases, and all of them shuffle the same amount of data, but the output tasks and partitioning is different. I'd expect all cases to take the same time, as they shuffle the same amount of data, but there is some variations:
Benchmarking shuffle/stream/1producer_1consumer_8partitions_1000000rows_1024batch_Nonecompression:
time: [90.704 ms 91.729 ms 94.261 ms]
shuffle/stream/1producer_1consumer_8partitions_1000000rows_1024batch_Some(LZ4_FRAME)compression:
time: [115.04 ms 125.10 ms 139.33 ms]
Benchmarking shuffle/stream/8producer_1consumer_8partitions_1000000rows_1024batch_Nonecompression:
time: [60.487 ms 60.780 ms 61.057 ms]
Benchmarking shuffle/stream/1producer_8consumer_8partitions_1000000rows_1024batch_Nonecompression:
time: [197.23 ms 197.69 ms 198.10 ms]
Benchmarking shuffle/stream/8producer_8consumer_8partitions_1000000rows_1024batch_Nonecompression:
time: [76.776 ms 77.825 ms 80.544 ms]
I think there should be some low hanging fruits regarding performance, and some other more complicated improvements:
I'm suspicious about arrow-flight cloning data unnecessarily
RepartitionExec might be doing something funny depending on the amount of output tasks
First remote shuffle, that fanouts to 1 partition per worker, and that enriches the hashing expressions with a constant expression that acts like a "salt".
Local re-shuffle, that fanouts to target_partitions partitions locally inside each NetworkShuffleExec, re-establishing local parallelism.
Before jumping to this, I'd double check if there's any precedence in other engines about this.
Activity
refactor / add benches for shuffle and transport shuffling (#408)
Rich-T-kid commentedon May 10, 2026
does #408 close this ticket?
cc @gabotechs @gene-bordegaray
gene-bordegaray commentedon May 10, 2026
No still working on this
Call take arrays once per repartitioned input batch (#22159)
Call take arrays once per repartitioned input batch (apache#22159)
gabotechs commentedon Aug 4, 2026
One idea comes to mind:
During network shuffles, perform two levels of
RepartitionExec, with two different salts in the hashing expressions:target_partitionspartitions locally inside eachNetworkShuffleExec, re-establishing local parallelism.Before jumping to this, I'd double check if there's any precedence in other engines about this.
gabotechs commentedon Sep 3, 2026
Here's another more complete diagram:
Now
Future
Rich-T-kid commentedon Sep 5, 2026
🤔 if we are going to reparation at the destination nodes do we still need to do it at the source?
for example (I don't know how to make those cool asci diagrams 😆 )
why cant C send a stream of data directly to a & b and have the data record batches be Repartitioned there?
edit: on second thought I think we need to do this to get groups keys together on the same node/partition.
feat: Reduce producer partition fan-out in NetworkShuffleExec (datafu…