apache / apache/datafusion

Add example implementing filter pushdown

Open
#21,145 5 comments 0 reactions 1 assignee Claimed by @pgwhalen View on GitHub
enhancement
Dominant language
Rust
Stars
9.3k
Forks
2.4k
Avg merge
3d 7h
Merged PRs (30d)
344

Description

### Is your feature request related to a problem or challenge?

@pgwhalen says on https://github.com/apache/datafusion-site/pull/161/changes#r2972139725

> As someone who struggled with implementing filter pushdown in a custom table provider before, it would be helpful if there was a section with examples on actually implementing it, just to specifying that the table provider supports it. Going from filters: &[Expr] to something more useful was pretty intimidating for me as a newbie. I ended up learning about LiteralGuarantee::analyze from the pruning_predicate.rs example and that was the big unlock, but as someone not familiar with database internals terminology, it was nonobvious initially.

### Describe the solution you'd like

It would be cool to add an example that shows how to use PruningPredicate and LiteralGuarantee to decide among files based on predicates, for example

### Describe alternatives you've considered

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.