Skip to content

fix(codec): reject nil data files in scan tasks - #1611

Open
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/codec-reject-nil-data-files
Open

fix(codec): reject nil data files in scan tasks#1611
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/codec-reject-nil-data-files

Conversation

@fallintoplace

Copy link
Copy Markdown
Contributor

What changed

Reject nil primary, positional-delete, equality-delete, and deletion-vector files when encoding a FileScanTask.

Why

The shared spec ID check called SpecID without checking the interface value first. Malformed tasks containing a nil file therefore panicked instead of returning the codec error expected by callers.

Testing

  • Added coverage for the primary file and all three secondary file lists
  • go test ./codec

Signed-off-by: Minh Vu <vuhoangminh97@gmail.com>
@fallintoplace
fallintoplace requested a review from zeroshade as a code owner July 30, 2026 19:39
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