You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "adriangb (via GitHub)" <gi...@apache.org> on 2026/09/24 00:47:58 UTC
[PR] docs: clarify what `PushedDown::No` means for filter pushdown [datafusion]
adriangb opened a new pull request, #25670:
URL: https://github.com/apache/datafusion/pull/25670
## Which issue does this PR close?
- Related to #18856, #24528 and #22883.
## Rationale for this change
The question "do we need `PushedDown::Inexact`?" keeps coming up (#18856, #24528). The behavior that `Inexact` would name already exists: `ParquetSource` replies `PushedDown::No` and still keeps the filter for statistics pruning when `pushdown_filters` is disabled. The confusion comes from the docs, which say `No` means "the predicate could not be pushed down".
A third state would not change what the parent does. Whether the child ignores the filter or uses it for pruning, the parent must evaluate it. Producers of optional filters (hash join and TopK dynamic filters) do not use the reply to find consumers either. Since #24601 they check if the filter is present in the child subtree.
## What changes are included in this PR?
Doc comments on `PushedDown`, `PushedDown::Yes` and `PushedDown::No`:
- `Yes`: the child applies the predicate exactly, so the parent does not need to evaluate it.
- `No`: the parent must still evaluate the predicate. The child may ignore it, or use it in an inexact way (for example for statistics pruning).
- Why there is no separate "inexact" state, and how optional filter producers find consumers (`plan_contains_expression_id`).
## What is the testing strategy for this PR?
Documentation only. `cargo doc -p datafusion-physical-plan` builds with `-D warnings`, so the intra-doc link resolves.
## Are there any user-facing changes?
No. Documentation only.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] docs: clarify what `PushedDown::No` means for filter pushdown [datafusion]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #25670:
URL: https://github.com/apache/datafusion/pull/25670#issuecomment-5805664422
## [Codecov](https://app.codecov.io/gh/apache/datafusion/pull/25670?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 82.48%. Comparing base ([`95bb0a0`](https://app.codecov.io/gh/apache/datafusion/commit/95bb0a0dfa48ca20d017faa55b2fc96ee2f300fe?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`64137bf`](https://app.codecov.io/gh/apache/datafusion/commit/64137bff86199918ecccea4f2b8be36859e6cb07?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## main #25670 +/- ##
==========================================
- Coverage 82.48% 82.48% -0.01%
==========================================
Files 1140 1140
Lines 437614 437614
Branches 437614 437614
==========================================
- Hits 360986 360976 -10
- Misses 54834 54844 +10
Partials 21794 21794
```
</details>
[:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/datafusion/pull/25670?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] docs: clarify what `PushedDown::Yes` and `PushedDown::No` mean [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb merged PR #25670:
URL: https://github.com/apache/datafusion/pull/25670
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [PR] docs: clarify what `PushedDown::Yes` and `PushedDown::No` mean [datafusion]
Posted by "adriangb (via GitHub)" <gi...@apache.org>.
adriangb commented on PR #25670:
URL: https://github.com/apache/datafusion/pull/25670#issuecomment-5818081345
FYI @jayzhan211 I toned it down a bit about implementation details and that `Inexact` is not needed. It's not a smaller change. I will leave this open for a day for comment regarldess. Thanks for reviewing.
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org