Skip to content

Commit ae88893

Browse files
committed
fmt
1 parent 3472352 commit ae88893

File tree

1 file changed

+4
-10
lines changed
  • datafusion/physical-plan/src/sorts

1 file changed

+4
-10
lines changed

datafusion/physical-plan/src/sorts/sort.rs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,12 @@ use crate::{
4545
Statistics,
4646
};
4747

48-
use arrow::array::{
49-
Array, ArrayRef, RecordBatch, RecordBatchOptions, StringViewArray,
50-
};
48+
use arrow::array::{Array, ArrayRef, RecordBatch, RecordBatchOptions, StringViewArray};
5149
use arrow::compute::{
5250
concat, interleave_record_batch, lexsort_to_indices, take_arrays, SortColumn,
5351
};
5452
use arrow::datatypes::SchemaRef;
55-
use datafusion_common::{
56-
internal_datafusion_err, internal_err, DataFusionError, Result,
57-
};
53+
use datafusion_common::{internal_datafusion_err, internal_err, DataFusionError, Result};
5854

5955
use datafusion_execution::disk_manager::RefCountedTempFile;
6056
use datafusion_execution::memory_pool::{MemoryConsumer, MemoryReservation};
@@ -659,10 +655,8 @@ impl ExternalSorter {
659655

660656
// If less than sort_in_place_threshold_bytes, we sort in memory.
661657
if self.reservation.size() < self.sort_in_place_threshold_bytes {
662-
let interleave_indices = self.build_sorted_indices(
663-
self.in_mem_batches.as_slice(),
664-
&self.expr,
665-
)?;
658+
let interleave_indices =
659+
self.build_sorted_indices(self.in_mem_batches.as_slice(), &self.expr)?;
666660

667661
let batches: Vec<&RecordBatch> = self.in_mem_batches.iter().collect();
668662
let sorted_batch = interleave_record_batch(&batches, &interleave_indices)?;

0 commit comments

Comments
 (0)