Skip to content

Commit 3604364

Browse files
committed
chore: migrate to DF 49.0.0
1 parent e5b7191 commit 3604364

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

native/core/src/execution/operators/filter.rs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -212,17 +212,15 @@ impl FilterExec {
212212
if binary.op() == &Operator::Eq {
213213
// Filter evaluates to single value for all partitions
214214
if input_eqs.is_expr_constant(binary.left()).is_some() {
215-
let (expr, across_parts) = (
216-
binary.right(),
217-
input_eqs.get_expr_constant_value(binary.right()),
218-
);
219-
res_constants.push(ConstExpr::new(Arc::clone(expr), across_parts));
215+
let across = input_eqs
216+
.is_expr_constant(binary.right())
217+
.unwrap_or_default();
218+
res_constants.push(ConstExpr::new(Arc::clone(binary.right()), across));
220219
} else if input_eqs.is_expr_constant(binary.right()).is_some() {
221-
let (expr, across_parts) = (
222-
binary.left(),
223-
input_eqs.get_expr_constant_value(binary.left()),
224-
);
225-
res_constants.push(ConstExpr::new(Arc::clone(expr), across_parts));
220+
let across = input_eqs
221+
.is_expr_constant(binary.left())
222+
.unwrap_or_default();
223+
res_constants.push(ConstExpr::new(Arc::clone(binary.left()), across));
226224
}
227225
}
228226
}

0 commit comments

Comments
 (0)