Skip to content

Commit 01274f9

Browse files
committed
re-use
1 parent ac339fe commit 01274f9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

datafusion/core/src/physical_optimizer/pruning.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4020,10 +4020,7 @@ mod tests {
40204020
required_columns: &mut RequiredColumns,
40214021
) -> Arc<dyn PhysicalExpr> {
40224022
let expr = logical2physical(expr, schema);
4023-
// return literal true
4024-
let unhandled_hook = Arc::new(ConstantUnhandledPredicateHook::new(Arc::new(
4025-
phys_expr::Literal::new(ScalarValue::Boolean(Some(true))),
4026-
))) as _;
4023+
let unhandled_hook = default_unhandled_hook();
40274024
build_predicate_expression(&expr, schema, required_columns, &unhandled_hook)
40284025
}
40294026
}

0 commit comments

Comments
 (0)