Repository navigation
[Python] Keep NumpyTablet null bitmaps aligned when sorting timestamps - #19403
Merged
HTHou merged 2 commits intoNov 27, 2026
Merged
Conversation
HTHou
reviewed
Nov 27, 2026
HTHou
left a comment
Contributor
There was a problem hiding this comment.
I verified that the new regression test fails on the base commit and that all 55 Python client unit tests pass on this revision.
HTHou
approved these changes
Nov 27, 2026
HTHou
left a comment
Contributor
There was a problem hiding this comment.
The bitmap sort is now vectorized and value columns are replaced one at a time. I rechecked both changes on this revision and all 56 Python client unit tests passed locally.
Contributor
Author
|
thank~ |
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.
Fixes #19402
Description
NumpyTabletsorts out-of-order timestamps and values on construction. This change applies the same row order to each supplied null bitmap. A column without a bitmap keeps its existing encoding.For example, consider an INT32 column with rows
(20, NULL)and(10, 123), using zero as the placeholder. The old payload marked time 10 as null and exposed zero at time 20. The corrected payload encodes(10, 123)and(20, NULL).Tests
Tablet. It covers two columns with different null positions, a column without a bitmap, and a null moving from bit 0 to bit 8.pytest -q tests/unitfromiotdb-client/client-py).Session.gen_insert_tablet_req(). The resulting null bitmap byte is0x02.