Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dandandan committed Dec 9, 2024
1 parent ac23642 commit 0bad445
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions datafusion/physical-plan/src/repartition/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ use crate::sorts::streaming_merge::StreamingMergeBuilder;
use crate::stream::RecordBatchStreamAdapter;
use crate::{DisplayFormatType, ExecutionPlan, Partitioning, PlanProperties, Statistics};

use arrow::compute::kernels::zip::zip;
use arrow::compute::take_arrays;
use arrow::datatypes::{SchemaRef, UInt32Type};
use arrow::record_batch::RecordBatch;
Expand Down Expand Up @@ -804,7 +803,7 @@ impl RepartitionExec {
None => break,
};

for res in partitioner.partition_iter(batch)? {
'next_batch: for res in partitioner.partition_iter(batch)? {
let (partition, batch) = res?;
let size = batch.get_array_memory_size();

Expand All @@ -826,7 +825,7 @@ impl RepartitionExec {
}
Some(_) => {
timer.done();
continue;
continue 'next_batch;
}
None => {
timer.done();
Expand Down

0 comments on commit 0bad445

Please sign in to comment.