Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
2010YOUY01 committed Nov 12, 2024
1 parent d185ae6 commit 84cee68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
5 changes: 1 addition & 4 deletions datafusion/core/tests/memory_limit/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -779,10 +779,7 @@ fn make_dict_batches() -> Vec<RecordBatch> {

// How many bytes does the memory from dict_batches consume?
fn batches_byte_size(batches: &[RecordBatch]) -> usize {
batches
.iter()
.map(|b| get_record_batch_memory_size(b))
.sum()
batches.iter().map(get_record_batch_memory_size).sum()
}

#[derive(Debug)]
Expand Down
10 changes: 3 additions & 7 deletions datafusion/physical-plan/src/spill.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ mod tests {
use crate::spill::{spill_record_batch_by_size, spill_record_batches};
use crate::test::build_table_i32;
use arrow::array::{Float64Array, Int32Array};
use arrow::datatypes::{DataType, Field, Float64Type, Int32Type, Schema};
use arrow::datatypes::{DataType, Field, Int32Type, Schema};
use arrow::record_batch::RecordBatch;
use arrow_array::ListArray;
use datafusion_common::Result;
Expand Down Expand Up @@ -319,16 +319,12 @@ mod tests {
let schema = Arc::new(Schema::new(vec![
Field::new(
"nested_int",
DataType::List(Arc::new(
Field::new("item", DataType::Int32, true).into(),
)),
DataType::List(Arc::new(Field::new("item", DataType::Int32, true))),
false,
),
Field::new(
"nested_int2",
DataType::List(Arc::new(
Field::new("item", DataType::Int32, true).into(),
)),
DataType::List(Arc::new(Field::new("item", DataType::Int32, true))),
false,
),
]));
Expand Down

0 comments on commit 84cee68

Please sign in to comment.