Repository navigation
Add vortex rewrite: re-encode a file with the current writer - #749
Merged
Merged
Conversation
`vortex rewrite [options] <file|url> <out.vortex>` scans every chunk of the source and writes it again through VortexWriter, so the output is what today's writer picks, not what the source's writer picked. - Options: --compact, --no-zone-maps, --no-global-dict, --edition <id> (also --edition=<id>). An edition too old for the data fails with the writer guard's message. - First version: a flat struct of primitive, bool and utf8 columns, nullable or not. Any other column (nested, decimal, binary, extension, f16) is rejected before the output exists. Nullable columns reach the writer as a primitive array plus validity (NullableData), utf8 as raw bytes. - The output must not exist, so a rewrite cannot overwrite its source; any failure removes the partial output. - Over HTTP each chunk prefetches all its columns together: the 105 MB OpenPowerlifting sample rewrites in 16 s from a URL instead of 51 s. - docs/how-to.md has a Re-encode a Vortex file section; vortex-cli's version is managed in the root POM so the integration module can use it. Cross-checked against vortex-jni: a jni-written file is rewritten, then jni reads both back whole and under filters that prune zones. Co-Authored-By: Claude Sonnet 5 <[email protected]>
dfa1
force-pushed
the
rewrite-command
branch
from
November 13, 2026 20:28
42db543 to
5631be3
Compare
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.
vortex rewrite [--compact] <file|url> <out.vortex>. First version covers flat structs of primitive, bool and utf8 columns (nullable or not); other types fail before the output is created. Unit tests plus a vortex-jni cross-check (RewriteInteropIntegrationTest).Not done: nested/decimal/binary/extension/f16 columns,
--edition, and a faster path than boxed arrays for nullable columns.🤖 Generated with Claude Code