diff --git a/arrow-ord/src/cmp.rs b/arrow-ord/src/cmp.rs index 746bcba7cd95..7e2058a64409 100644 --- a/arrow-ord/src/cmp.rs +++ b/arrow-ord/src/cmp.rs @@ -341,9 +341,8 @@ fn compare_op_struct_values( // compare each field of struct let child_res = l .columns() - .to_vec() .iter() - .zip(r.columns().to_vec().iter()) + .zip(r.columns().iter()) .map(|(col_l, col_r)| compare_op_values(Op::Equal, col_l, l_s, col_r, r_s, len)) .collect::, ArrowError>>()?; // combine the result of each field