File tree 1 file changed +3
-3
lines changed
datafusion/physical-expr/src/expressions
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -586,15 +586,15 @@ impl PhysicalExpr for BinaryExpr {
586
586
if self . op . is_numerical_operators ( ) {
587
587
return match ( & left_value, & right_value) {
588
588
( ColumnarValue :: Array ( left) , ColumnarValue :: Array ( right) ) => {
589
- self . evaluate_datum ( & * left, & * right)
589
+ self . evaluate_datum ( & left. as_ref ( ) , & right)
590
590
}
591
591
( ColumnarValue :: Scalar ( left) , ColumnarValue :: Array ( right) ) => {
592
592
let left = left. to_array ( ) ;
593
- self . evaluate_datum ( & Scalar :: new ( left. as_ref ( ) ) , & * right)
593
+ self . evaluate_datum ( & Scalar :: new ( left. as_ref ( ) ) , & right. as_ref ( ) )
594
594
}
595
595
( ColumnarValue :: Array ( left) , ColumnarValue :: Scalar ( right) ) => {
596
596
let right = right. to_array ( ) ;
597
- self . evaluate_datum ( & * left, & Scalar :: new ( right. as_ref ( ) ) )
597
+ self . evaluate_datum ( & left. as_ref ( ) , & Scalar :: new ( right. as_ref ( ) ) )
598
598
}
599
599
( ColumnarValue :: Scalar ( left) , ColumnarValue :: Scalar ( right) ) => {
600
600
let left = left. to_array ( ) ;
You can’t perform that action at this time.
0 commit comments