From a761692e575707b2c4720d901f32f6d598fd8698 Mon Sep 17 00:00:00 2001 From: Siddharth kumar Date: Wed, 17 Jul 2024 14:07:48 +0530 Subject: [PATCH] null required no changes only min max where problem --- crates/core/src/kernel/arrow/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/core/src/kernel/arrow/mod.rs b/crates/core/src/kernel/arrow/mod.rs index a08c1c39d1..a80d3b5d12 100644 --- a/crates/core/src/kernel/arrow/mod.rs +++ b/crates/core/src/kernel/arrow/mod.rs @@ -330,7 +330,6 @@ fn max_min_schema_for_fields(dest: &mut Vec, 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)); } } @@ -352,8 +351,8 @@ fn null_count_schema_for_fields(dest: &mut Vec, 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); } } }