Skip to content

fix: reject record batches with missing dictionaries - #539

Open
duan-n2d wants to merge 1 commit into
apache:mainfrom
duan-n2d:fix/536-missing-dictionary-error
Open

duan-n2d wants to merge 1 commit into
apache:mainfrom
duan-n2d:fix/536-missing-dictionary-error

Conversation

@duan-n2d

Copy link
Copy Markdown

What's Changed\n\nCloses #536.\n\nVectorLoader.readDictionary() now throws a descriptive error when a dictionary-encoded RecordBatch references a dictionary id for which no DictionaryBatch has been received. Previously the non-null assertion allowed undefined to reach vector construction, producing null values without an error.\n\nAdded a regression test covering the missing-dictionary case.\n\n## Testing\n\n-

pm.cmd run lint:ci passes.\n- Jest was attempted, but the repository targets have not been built locally; the runner fails while resolving generated argets/* modules before executing tests.

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.

2 participants