Apache DataFusion SQL Query Engine
Minor: clean up the code based on Clippy (#8257)
Alex Huang2e3f4344be4b
diff --git a/datafusion/physical-expr/src/array_expressions.rs b/datafusion/physical-expr/src/array_expressions.rsindex 8bb70c3168..e2d22a0d33 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<ArrayRef> {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::<i32>();let list2 = array2.as_list::<i32>();let result = general_except::<i32>(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::<i64>();let list2 = array2.as_list::<i64>();let result = general_except::<i64>(list1, list2, field)?;diff --git a/datafusion/physical-plan/src/filter.rs b/datafusion/physical-plan/src/filter.rsindex 107c95eff7..b6cd9fe79c 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/8133let 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