File tree 1 file changed +8
-4
lines changed
datafusion/physical-optimizer/src
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1496,7 +1496,11 @@ fn build_predicate_expression(
1496
1496
( false , true ) => Operator :: ILikeMatch ,
1497
1497
( true , true ) => Operator :: NotILikeMatch ,
1498
1498
} ;
1499
- ( like_expr. expr ( ) . clone ( ) , op, like_expr. pattern ( ) . clone ( ) )
1499
+ (
1500
+ Arc :: clone ( like_expr. expr ( ) ) ,
1501
+ op,
1502
+ Arc :: clone ( like_expr. pattern ( ) ) ,
1503
+ )
1500
1504
} else {
1501
1505
return unhandled_hook. handle ( expr) ;
1502
1506
}
@@ -1680,15 +1684,15 @@ fn build_like_match(
1680
1684
} else {
1681
1685
// the like expression is a literal and can be converted into a comparison
1682
1686
let bound = Arc :: new ( phys_expr:: Literal :: new ( ScalarValue :: Utf8 ( Some ( s. clone ( ) ) ) ) ) ;
1683
- ( bound . clone ( ) , bound)
1687
+ ( Arc :: clone ( & bound ) , bound)
1684
1688
} ;
1685
1689
let lower_bound_expr = Arc :: new ( phys_expr:: BinaryExpr :: new (
1686
1690
lower_bound,
1687
1691
Operator :: LtEq ,
1688
- max_column_expr . clone ( ) ,
1692
+ Arc :: clone ( & max_column_expr ) ,
1689
1693
) ) ;
1690
1694
let upper_bound_expr = Arc :: new ( phys_expr:: BinaryExpr :: new (
1691
- min_column_expr . clone ( ) ,
1695
+ Arc :: clone ( & min_column_expr ) ,
1692
1696
Operator :: LtEq ,
1693
1697
upper_bound,
1694
1698
) ) ;
You can’t perform that action at this time.
0 commit comments