Skip to content

Add test for ordering of predicate pushdown into parquet #16169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

adriangb
Copy link
Contributor

I was concerned that the dance we were doing with allowed_filters resulted in the order of filters being returned to the parent differing from the order they were passed down in.

Luckily during the design of these APIs we ended up making them agnostic to the ordering of filters (hence why we pass the actual PhysicalExpr back up) so there is no bug 😄

Nonetheless I decided to add tests, documentation and helpers to avoid this being a cause for confusion or a bug in the future.

@github-actions github-actions bot added sqllogictest SQL Logic Tests (.slt) datasource Changes to the datasource crate physical-plan Changes to the physical-plan crate labels May 23, 2025
@adriangb
Copy link
Contributor Author

@kosiew you seem to have a keen eye for API design and implementations of helper methods like this. I feel like the APIs here are currently a bit convoluted / redundant. At some point we'll want to audit real world usage and maybe redo them. Would you mind taking a look at this PR and giving feedback + any bigger picture thoughts you might have on how to implement these helpers?

@kosiew
Copy link
Contributor

kosiew commented May 26, 2025

hi @adriangb ,

Thanks for the ping.
I recorded some thought and suggestion in #16188

@adriangb adriangb force-pushed the fix-predicate-pushdown-bug branch from f4287ce to fc2ce21 Compare May 28, 2025 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datasource Changes to the datasource crate physical-plan Changes to the physical-plan crate sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants