@@ -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 } ;
5149use arrow:: compute:: {
5250 concat, interleave_record_batch, lexsort_to_indices, take_arrays, SortColumn ,
5351} ;
5452use 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
5955use datafusion_execution:: disk_manager:: RefCountedTempFile ;
6056use 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