Skip to content

Hold leaf ids at their own type so both routes agree - #38

Merged
C1587S merged 1 commit into
mainfrom
typed-leaf-ids
Nov 28, 2026
Merged

C1587S merged 1 commit into
mainfrom
typed-leaf-ids

Conversation

@C1587S

@C1587S C1587S commented Nov 28, 2026

Copy link
Copy Markdown
Member
  • A leaf file carries a target's id in the type its weights artifact has, and the reduce stage gives it back the same way, so neither route converts an id and both end with the same dtypes and row order.
  • A leaf records the type of each id, so one built from one copy of the targets is never refused against another over how a string is stored. Leaf format version 2, and older files ask to be written again.
  • Checked on the cluster over 2,880 leaves: both routes agree bit for bit, and the first block measured 220.5 bytes a kept row against an estimate of 240.

Leaf format version 2 takes ids that are strings or integers, where version 1 took strings alone and refused every leaf of the GADM 2.0 artifacts, whose ID_1 and ID_2 are int64. Integers keep their width in the target table and the leaf files and sort by value, and the reduce stage gives the ids back in the artifact's type, so its statistics have the dtypes and row order of stage all. The target digest takes each field's type, with string and large_string one type, since the width of a string's offsets says nothing of the id, and the integer widths distinct.
@C1587S
C1587S merged commit 2cda001 into main Nov 28, 2026
16 checks passed
@C1587S
C1587S deleted the typed-leaf-ids branch November 28, 2026 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant