Skip to content

Support reporting statistics and currently written byte size from writers in jni#8726

Merged
robert3005 merged 7 commits into
developfrom
rk/writeapi
Jul 15, 2026
Merged

Support reporting statistics and currently written byte size from writers in jni#8726
robert3005 merged 7 commits into
developfrom
rk/writeapi

Conversation

@robert3005

Copy link
Copy Markdown
Contributor

Allow users to extract the whole file stats from the write instead of having to
read the files back

@codspeed-hq

codspeed-hq Bot commented Jul 12, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 1660 untouched benchmarks
⏩ 47 skipped benchmarks1


Comparing rk/writeapi (25dcaa8) with develop (6b27c45)

Open in CodSpeed

Footnotes

  1. 47 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

robert3005 and others added 3 commits July 13, 2026 20:28
Expose currently written byte size to writers and through vortex-jni

Signed-off-by: Robert Kruszewski <github@robertk.io>
Replace the top-level-only column size computation with a single walk
of the layout tree that attributes each segment to the deepest field
path referencing it, exposed as Footer::compressed_field_sizes.
WriteSummary::compressed_column_sizes is now a thin schema-order
wrapper over it.

Signed-off-by: "Robert Kruszewski" <github@robertk.io>

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JE2aKEzyogTh1dP126gudc
Construct the counting write before spawning the JNI write task and
retrieve the shared counter directly via counter(), instead of
threading a pre-allocated counter through with_counter. Sink creation
now happens synchronously in NativeWriter.create, surfacing IO errors
there instead of at close.

Signed-off-by: "Robert Kruszewski" <github@robertk.io>

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JE2aKEzyogTh1dP126gudc
Comment thread vortex-file/src/footer/field_sizes.rs
Comment thread vortex-jni/src/writer.rs
@robert3005 robert3005 added the changelog/feature A new feature label Jul 15, 2026
@robert3005 robert3005 changed the title Support reporting statistics and currently written byte size from writers Support reporting statistics and currently written byte size from writers in jni Jul 15, 2026
Signed-off-by: Robert Kruszewski <github@robertk.io>
Signed-off-by: Robert Kruszewski <github@robertk.io>
Signed-off-by: Robert Kruszewski <github@robertk.io>
Signed-off-by: Robert Kruszewski <github@robertk.io>
@robert3005 robert3005 enabled auto-merge (squash) July 15, 2026 18:00
@robert3005 robert3005 merged commit af1e6a6 into develop Jul 15, 2026
70 checks passed
@robert3005 robert3005 deleted the rk/writeapi branch July 15, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/feature A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants