Repository navigation
Conversation
Track the initial dictionary IDs in the current file footer for both byte and file-handle readers. Reject a duplicate before consuming its body and close the partially opened reader. Keep delta batches and IPC streams on their existing paths. Generated-by: OpenAI Codex (GPT-6)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #538.
A file with two full dictionary batches for the same ID could silently change a column from
["a", "b", "c"]to["c", null, null]. The synchronous and asynchronous file readers now track the IDs of full dictionary batches in the file footer. A duplicate closes the partially opened reader and raises an error with the dictionary ID before its body is read.The regression tests cover bytes, a Node file handle, and a valid file with multiple dictionary IDs and a prepopulated dictionary map. An independent wire-level comparison changed a single flag byte and reproduced the original wrong values through both entry points. File deltas and stream dictionary replacements still round-trip their original values. IPC file format
All 2,824 IPC tests across 18 suites passed, along with the ESNext ESM source typecheck and ESLint on the two changed files. The full local Jest run reached its 640 MiB Node heap limit. With the local test dependencies, the optional test-source typecheck produced the same diagnostics on the base and this change.
OpenAI Codex (GPT-6) assisted with the implementation, tests and wire-level comparison.