diff --git a/datafusion/physical-expr/src/array_expressions.rs b/datafusion/physical-expr/src/array_expressions.rs index 8bb70c316879..e2d22a0d3328 100644 --- a/datafusion/physical-expr/src/array_expressions.rs +++ b/datafusion/physical-expr/src/array_expressions.rs @@ -582,14 +582,14 @@ pub fn array_except(args: &[ArrayRef]) -> Result { match (array1.data_type(), array2.data_type()) { (DataType::Null, _) | (_, DataType::Null) => Ok(array1.to_owned()), (DataType::List(field), DataType::List(_)) => { - check_datatypes("array_except", &[&array1, &array2])?; + check_datatypes("array_except", &[array1, array2])?; let list1 = array1.as_list::(); let list2 = array2.as_list::(); let result = general_except::(list1, list2, field)?; Ok(Arc::new(result)) } (DataType::LargeList(field), DataType::LargeList(_)) => { - check_datatypes("array_except", &[&array1, &array2])?; + check_datatypes("array_except", &[array1, array2])?; let list1 = array1.as_list::(); let list2 = array2.as_list::(); let result = general_except::(list1, list2, field)?; diff --git a/datafusion/physical-plan/src/filter.rs b/datafusion/physical-plan/src/filter.rs index 107c95eff7f1..b6cd9fe79c85 100644 --- a/datafusion/physical-plan/src/filter.rs +++ b/datafusion/physical-plan/src/filter.rs @@ -201,7 +201,7 @@ impl ExecutionPlan for FilterExec { // tracking issue for making this configurable: // https://github.com/apache/arrow-datafusion/issues/8133 let selectivity = 0.2_f64; - let mut stats = input_stats.clone().into_inexact(); + let mut stats = input_stats.into_inexact(); stats.num_rows = stats.num_rows.with_estimated_selectivity(selectivity); stats.total_byte_size = stats .total_byte_size