Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Lamb <[email protected]>
  • Loading branch information
crepererum and alamb authored Jan 13, 2023
1 parent 656f9b6 commit c393931
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions datafusion/core/src/physical_plan/repartition/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,8 @@ impl ExecutionPlan for RepartitionExec {
// if this is the first partition to be invoked then we need to set up initial state
if state.channels.is_empty() {
// create one channel per *output* partition
// note we use a custom channel that ensures there is always data for each receiver
// but limits the amount of buffering if required.
let (txs, rxs) = channels(num_output_partitions);
for (partition, (tx, rx)) in txs.into_iter().zip(rxs).enumerate() {
let reservation = Arc::new(Mutex::new(
Expand Down

0 comments on commit c393931

Please sign in to comment.