Skip to content

Commit

Permalink
null required no changes only min max where problem
Browse files Browse the repository at this point in the history
  • Loading branch information
sherlockbeard committed Jul 17, 2024
1 parent 212a470 commit a761692
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/core/src/kernel/arrow/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,6 @@ fn max_min_schema_for_fields(dest: &mut Vec<ArrowField>, f: &ArrowField) {
// don't compute min or max for list, map or binary types
ArrowDataType::List(_) | ArrowDataType::Map(_, _) | ArrowDataType::Binary => { /* noop */ }
_ => {
let f = f.clone();
dest.push(ArrowField::new(f.name(), f.data_type().clone(), true));
}
}
Expand All @@ -352,8 +351,8 @@ fn null_count_schema_for_fields(dest: &mut Vec<ArrowField>, f: &ArrowField) {
));
}
_ => {
let f = ArrowField::new(f.name(), ArrowDataType::Int64, true);
dest.push(ArrowField::new(f.name(), f.data_type().clone(), true));
let f: ArrowField = ArrowField::new(f.name(), ArrowDataType::Int64, true);
dest.push(f);
}
}
}
Expand Down

0 comments on commit a761692

Please sign in to comment.