Skip to content

Commit eb09e71

Browse files
committed
feat: support physical placeholders
This commit introduces physical-level support for placeholders, allowing physical plans to be prepared once and executed multiple times with different parameter values. Key changes: - Added `PlaceholderExpr` physical expression. - Added `ResolvePlaceholdersExec` to handle placeholder resolution at execution time. - Updated `TaskContext` to carry `ParamValues` for resolution during `execute`. - Added `PhysicalExprResolver` optimizer rule to manage `ResolvePlaceholdersExec` nodes. - Updated `FilterPushdown` to correctly handle expressions containing placeholders.
1 parent d51359f commit eb09e71

23 files changed

Lines changed: 1944 additions & 26 deletions

File tree

‎datafusion/core/tests/physical_optimizer/mod.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ mod join_selection;
3131
mod limit_pushdown;
3232
mod limited_distinct_aggregation;
3333
mod partition_statistics;
34+
#[expect(clippy::needless_pass_by_value)]
35+
mod physical_expr_resolver;
3436
mod projection_pushdown;
3537
mod pushdown_sort;
3638
mod replace_with_order_preserving_variants;

0 commit comments

Comments
 (0)