Skip to content

fix(arrow/ipc): open mapped files with dictionary fields - #1365

Merged
zeroshade merged 1 commit into
apache:mainfrom
hpaliwal8:fix/ipc-mapped-file-reader-dictionary
Oct 13, 2026
Merged

zeroshade merged 1 commit into
apache:mainfrom
hpaliwal8:fix/ipc-mapped-file-reader-dictionary

Conversation

@hpaliwal8

Copy link
Copy Markdown
Contributor

Rationale for this change

NewMappedFileReader panics on dictionary fields because its memo is uninitialized. Fixes #1364.

What changes are included in this PR?

Initialize the mapped reader's memo and add a dictionary readback test.

Are these changes tested?

go test ./arrow/ipc -count=1

Are there any user-facing changes?

Yes. Mapped file readers can now open and read files with dictionary fields.

@hpaliwal8
hpaliwal8 requested a review from zeroshade as a code owner October 9, 2026 19:05
@zeroshade
zeroshade force-pushed the fix/ipc-mapped-file-reader-dictionary branch from 0b4382d to e4a1cbf Compare October 13, 2026 13:43

@zeroshade zeroshade left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM — NewMappedFileReader now initializes its dictionary memo the same way NewFileReader does, which fixes the nil-map panic from #1364. I confirmed TestMappedReaderDictionary panics with assignment to entry in nil map without the fix and passes with it; the full arrow/ipc suite passes locally.


This review was drafted by an AI-assisted tool and
confirmed by an Apache Arrow maintainer. The maintainer
approving this PR has read the findings and signed off. If
something feels off, please reply on the PR and a maintainer
will follow up.

More on how Apache Arrow handles maintainer review:
CONTRIBUTING.md.

@zeroshade
zeroshade merged commit 5b74480 into apache:main Oct 13, 2026
23 checks passed
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.

ipc: NewMappedFileReader panics on a dictionary-encoded schema (nil memo map)

2 participants