Skip to content

Commit

Permalink
rename make_int32_range
Browse files Browse the repository at this point in the history
  • Loading branch information
my-vegetable-has-exploded committed Jan 6, 2024
1 parent 62de9e6 commit b88b7ea
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions datafusion/core/tests/parquet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -533,10 +533,7 @@ fn create_data_batch(scenario: Scenario) -> Vec<RecordBatch> {
]
}
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![
Expand Down

0 comments on commit b88b7ea

Please sign in to comment.