Repository navigation
Conversation
2 of 3 tasks
The native library wrote a column of record links and a column of lists as one tagged JSON array (json), parsed per cell in Python. ColumnFrames now writes rid for a column of valid RIDs (two int64 per row, a null row is 0, 0) and li8 or lf8 for a column of lists of integers or of floats (int32 offsets, a bitmap of null elements, one flat int64 or float64 array, a null row is an empty list under the row's null bit). Maps, nested lists, lists of strings, booleans or RIDs, lists that mix ints and floats, a list of nothing but nulls, an invalid RID (negative bucket or position), a column that mixes kinds and a column with more than 2**27 list elements in one frame stay json. The decoder and the JVM writer are the change this one is stacked on. The test now expects the new kinds from the native wheel as it does from the JVM wheel (KINDS).
tae898
force-pushed
the
perf/388-native-column-frame-kinds
branch
from
November 22, 2026 20:32
ee95e6b to
4498527
Compare
This branch has not been deployed
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.
What does this PR do?
The native library's writer of column frames (
ColumnFrames) writesridfor a column of valid RIDs (two int64 per row) andli8orlf8for a column of lists of integers or of floats (int32 offsets, a bitmap of null elements, one flat int64 or float64 array). Maps, nested lists, lists of anything else, lists that mix ints and floats, a list of nothing but nulls, an invalid RID and a column that mixes kinds stayjson, as in #394. This is the native half of rank 10 of #388: #394 has the shared decoder and the JVM writer, and the native writer was split out of it so each half can be reviewed and measured on its own.#394 is merged, so this PR is now a single commit on
main:ColumnFrames.java(+125/-3) and the native line ofKINDSintests/test_frame_rid_list_kinds.py, which now expects the binary kinds from the native writer too. It needs a CI-built native library for its timed study (the workflowTest nativeon this branch), which is planned for 27.1.1. The decoder it relies on is inmain, and the study of the JVM writer is on #394.Related issues
Refs #388 and #315.
Performance changes
Not measured. The study of this half needs a native library built by CI (a native image build takes 5 to 30 minutes and is not built on a laptop or on the bench host), so it waits for the wheel CI builds from this branch. This PR states no speed or memory figure until it has run.
Docs
No page under
docs/orREADME.mddescribes the frame kinds; the header comment ofColumnFrames.javalists them.Checklist
json)uvx pre-commit run --files <changed files>passes(Edited 2026-11-23: #394 merged, this pull request now sits on
main.)