Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
tustvold committed Jul 4, 2023
1 parent 47c4fe1 commit 07e83f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions datafusion/physical-expr/src/expressions/binary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -586,15 +586,15 @@ impl PhysicalExpr for BinaryExpr {
if self.op.is_numerical_operators() {
return match (&left_value, &right_value) {
(ColumnarValue::Array(left), ColumnarValue::Array(right)) => {
self.evaluate_datum(&*left, &*right)
self.evaluate_datum(&left.as_ref(), &right)
}
(ColumnarValue::Scalar(left), ColumnarValue::Array(right)) => {
let left = left.to_array();
self.evaluate_datum(&Scalar::new(left.as_ref()), &*right)
self.evaluate_datum(&Scalar::new(left.as_ref()), &right.as_ref())
}
(ColumnarValue::Array(left), ColumnarValue::Scalar(right)) => {
let right = right.to_array();
self.evaluate_datum(&*left, &Scalar::new(right.as_ref()))
self.evaluate_datum(&left.as_ref(), &Scalar::new(right.as_ref()))
}
(ColumnarValue::Scalar(left), ColumnarValue::Scalar(right)) => {
let left = left.to_array();
Expand Down

0 comments on commit 07e83f7

Please sign in to comment.