From b88b7ea8613328084fb148afac9932ce860713f4 Mon Sep 17 00:00:00 2001 From: my-vegetable-has-exploded Date: Sat, 6 Jan 2024 16:44:22 +0800 Subject: [PATCH] rename make_int32_range --- datafusion/core/tests/parquet/mod.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/datafusion/core/tests/parquet/mod.rs b/datafusion/core/tests/parquet/mod.rs index ac0ddce14e45f..821242cfca1d9 100644 --- a/datafusion/core/tests/parquet/mod.rs +++ b/datafusion/core/tests/parquet/mod.rs @@ -377,7 +377,7 @@ fn make_int32_batch(start: i32, end: i32) -> RecordBatch { RecordBatch::try_new(schema, vec![array.clone()]).unwrap() } -fn make_int32_batch_range(start: i32, end: i32) -> RecordBatch { +fn make_int32_range(start: i32, end: i32) -> RecordBatch { let schema = Arc::new(Schema::new(vec![Field::new("i", DataType::Int32, true)])); let v = vec![start, end]; let array = Arc::new(Int32Array::from(v)) as ArrayRef; @@ -533,10 +533,7 @@ fn create_data_batch(scenario: Scenario) -> Vec { ] } Scenario::Int32Range => { - vec![ - make_int32_batch_range(0, 10), - make_int32_batch_range(200000, 300000), - ] + vec![make_int32_range(0, 10), make_int32_range(200000, 300000)] } Scenario::Float64 => { vec![