Skip to content

Commit

Permalink
re-use
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangb committed Oct 9, 2024
1 parent 7409fe7 commit 28c79b2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions datafusion/core/src/physical_optimizer/pruning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4020,10 +4020,7 @@ mod tests {
required_columns: &mut RequiredColumns,
) -> Arc<dyn PhysicalExpr> {
let expr = logical2physical(expr, schema);
// return literal true
let unhandled_hook = Arc::new(ConstantUnhandledPredicateHook::new(Arc::new(
phys_expr::Literal::new(ScalarValue::Boolean(Some(true))),
))) as _;
let unhandled_hook = default_unhandled_hook();
build_predicate_expression(&expr, schema, required_columns, &unhandled_hook)
}
}

0 comments on commit 28c79b2

Please sign in to comment.