Skip to content

fix(table): apply per-task residual filters in ReadTasks - #1676

Draft
fallintoplace wants to merge 2 commits into
apache:mainfrom
fallintoplace:fix/scan-task-residuals
Draft

fix(table): apply per-task residual filters in ReadTasks#1676
fallintoplace wants to merge 2 commits into
apache:mainfrom
fallintoplace:fix/scan-task-residuals

Conversation

@fallintoplace

@fallintoplace fallintoplace commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Apply the residual filter attached to each scan task when reading tasks.

Why

Manifest planning can produce a residual that is narrower than the scan filter. Ignoring it can return rows that the task was not supposed to read.

What changed

Bind task residuals against the effective schema, use them for projection and row-group pruning, and keep the global scan filter as the fallback. The caller task slice is not modified.

Tests

  • go test ./table -run TestReadTasksUsesTaskResidual -count=1

@fallintoplace fallintoplace changed the title Apply per-task residual filters in ReadTasks fix(table): apply per-task residual filters in ReadTasks Aug 6, 2026
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.

1 participant