Skip to content

feat: support OR pushdown + add clustered data tests - #292

Open
eeroel wants to merge 2 commits into
duckdb:mainfrom
eeroel:feat/add_or_pushdown
Open

feat: support OR pushdown + add clustered data tests#292
eeroel wants to merge 2 commits into
duckdb:mainfrom
eeroel:feat/add_or_pushdown

Conversation

@eeroel

@eeroel eeroel commented Mar 14, 2026

Copy link
Copy Markdown

Closes #157

OR filter pushdown is now available via Delta Kernel -> support that.

Also adding tests for data that is perfectly clustered (one unique value per file) but not partitioned.

Potential issues:

  • Tests are awkwardly duplicated; I tried using a for loop to cover both "partitioned" and "clustered" with the same tests, but for some reason the "Scanning Files" entries would not show up in the EXPLAIN ANALYZE logs when doing that.
  • There may also be some cases like OR with combined partition and non-partition column that should be tested separately, but left out for now. Modified generate_test_data_delta_rs to support writing such "mixed" tables though.

@eeroel
eeroel marked this pull request as draft March 14, 2026 09:32
@eeroel

This comment was marked as outdated.

if (should_report_explain_output) {
if (!mfr_info->extra_info.total_files.IsValid()) {
mfr_info->extra_info.total_files = old_total;
} else if (mfr_info->extra_info.total_files.GetIndex() != old_total) {

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about this, but OR-filtered queries will hit this branch

@eeroel
eeroel marked this pull request as ready for review March 14, 2026 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Filtering with OR condition causes all files to be scanned

1 participant