Skip to content

Commit

Permalink
re-use
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangb committed Oct 10, 2024
1 parent a287479 commit a7e4b5b
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 a7e4b5b

Please sign in to comment.