adriangb opened a new pull request, #22234:
URL: https://github.com/apache/datafusion/pull/22234

   ## Which issue does this PR close?
   
   - Part of #22144 (Adaptive filter pushdown), split into a reviewable stack. 
This is **PR 1 of 4**.
   
   ## Rationale for this change
   
   Adaptive filter scheduling needs a way to mark a `PhysicalExpr` as a 
*performance hint* — a filter that may be dropped without affecting query 
correctness (e.g. a hash-join dynamic filter, whose predicate the join already 
enforces). This PR adds that marker type. It is deliberately inert: nothing 
reads it yet.
   
   ## What changes are included in this PR?
   
   - `OptionalFilterPhysicalExpr`: a transparent `PhysicalExpr` wrapper that 
delegates every trait method to its inner expression.
   - Proto support: a new `PhysicalOptionalFilterNode` message so physical 
plans containing the wrapper round-trip through `datafusion-proto`.
   
   No caller wraps anything yet — the hash-join wrap and the parquet scheduler 
that consume the marker arrive later in the stack.
   
   ## Are these changes tested?
   
   Yes — unit tests for the wrapper's delegation behavior and a proto 
round-trip test.
   
   ## Are there any user-facing changes?
   
   New public type `OptionalFilterPhysicalExpr`. Purely additive; no behavior 
change.
   
   ---
   
   Stacked PRs (review/merge in order):
   1. **this PR** — OptionalFilterPhysicalExpr + proto
   2. Per-conjunct pruning statistics
   3. SelectivityTracker cost model
   4. Adaptive parquet scan integration


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to