@@ -45,16 +45,12 @@ use crate::{
45
45
Statistics ,
46
46
} ;
47
47
48
- use arrow:: array:: {
49
- Array , ArrayRef , RecordBatch , RecordBatchOptions , StringViewArray ,
50
- } ;
48
+ use arrow:: array:: { Array , ArrayRef , RecordBatch , RecordBatchOptions , StringViewArray } ;
51
49
use arrow:: compute:: {
52
50
concat, interleave_record_batch, lexsort_to_indices, take_arrays, SortColumn ,
53
51
} ;
54
52
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 } ;
58
54
59
55
use datafusion_execution:: disk_manager:: RefCountedTempFile ;
60
56
use datafusion_execution:: memory_pool:: { MemoryConsumer , MemoryReservation } ;
@@ -659,10 +655,8 @@ impl ExternalSorter {
659
655
660
656
// If less than sort_in_place_threshold_bytes, we sort in memory.
661
657
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 ) ?;
666
660
667
661
let batches: Vec < & RecordBatch > = self . in_mem_batches . iter ( ) . collect ( ) ;
668
662
let sorted_batch = interleave_record_batch ( & batches, & interleave_indices) ?;
0 commit comments