Skip to content

revert: undo premature spilled row lineage stabilization - #9885

Merged
BubbleCal merged 1 commit into
mainfrom
yang/revert-9800-spilled-lineage-stabilization
Oct 11, 2026
Merged

BubbleCal merged 1 commit into
mainfrom
yang/revert-9800-spilled-lineage-stabilization

Conversation

@BubbleCal

Copy link
Copy Markdown
Contributor

Reverts #9800 (005a35ac1f1692cd88f39dced8802f4211846087), which was merged before the required format vote completed. The recorded gate had 1 of 3 PMC approvals, and the voting window does not end until 2026-10-14 02:49 UTC.

Restores the previous unreleased-format wording and FLAG_UNSTABLE_SPILLED_ROW_LINEAGE name in the specification. Only format documentation and protobuf comments change; the wire schema and runtime behavior are preserved. The implementation remains in the separate, open PR #9802.

Validation:

  • python3 ci/check_proto_comments.py protos/fragment_metadata.proto, git diff --cached --check, and the typos/proto-comment commit hooks pass.
  • Reapplying docs(format): stabilize spilled row lineage #9800's patch to the reverted files reproduces main 4ac2f7c88 exactly, confirming later changes are preserved.
  • The protobuf file is identical after stripping comments and whitespace.

This reverts commit 005a35a (#9800), which merged before the required format vote completed.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@github-actions github-actions Bot added A-format On-disk format: protos and format spec docs format-change A change to the format spec, which requires a vote. Remove if minor (e.g. fixing typo). labels Oct 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Important

Format specification vote

This PR modifies the Lance format specification, so it requires 3 binding +1 votes from PMC members (excluding the proposer), at least one of them on the latest commit, and a minimum 72-hour voting period, weekends excluded, before it can merge. Vote by approving this PR (+1) or requesting changes (−1, a veto). See the voting process.

Approvals carry over across pushes, so a rebase or a typo fix does not send everyone back to re-vote. Whoever approves the latest commit is vouching that nothing substantive has changed since the earlier approvals; if something has, ask for fresh votes.

Status: ❌ Blocked — 0 of 3 required approvals

Approvals none (0/3)
Latest commit approved by none — one PMC member must approve the latest commit
Vetoes none
Voting period ends Thu 2026-10-15 00:00 UTC (Wed 17:00 PDT)

Updated automatically by the format-spec vote gate, which re-checks every 15 minutes — just voted? Re-check now (press Run workflow; leave the input blank to re-check every open format PR). A PMC member may apply the format-waived label to waive the vote for a trivial edit (typo, wording, formatting).

@lance-gatekeeper lance-gatekeeper Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Gate recommendation: approve.

Reverting #9800 restores the pre-stabilization contract while its required format vote is unfinished. This is an exact documentation/comment revert: the protobuf wire layout, bit-11 safeguards, and runtime behavior are preserved. Unconditional support remains in the separate, open #9802 and should follow completed stabilization.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Oct 11, 2026
@BubbleCal
BubbleCal requested a review from wjones127 October 11, 2026 16:41
@BubbleCal

Copy link
Copy Markdown
Contributor Author

skip vote as this is a revert

@BubbleCal
BubbleCal merged commit e366866 into main Oct 11, 2026
@BubbleCal
BubbleCal deleted the yang/revert-9800-spilled-lineage-stabilization branch October 11, 2026 17:55
BubbleCal added a commit that referenced this pull request Oct 14, 2026
Re-proposes #9800 after #9885 reverted its premature merge. The file
changes are identical; this PR restarts the format vote.

Spilled row lineage has readers, writers and the operation matrix from
#9791, but the spec still marks it as unreleased. This declares the
existing format stable, names bit 11 `FLAG_SPILLED_ROW_LINEAGE`, and
states that disabling future spills does not disable reads of existing
spilled sequences.

The wire layout, bit value, V2-only boundary and table opt-in stay
unchanged. The runtime change is in #9802; this PR changes only format
documentation and protobuf comments. The first library release with
unconditional support will be recorded once that implementation lands.

Validation: `python3 ci/check_proto_comments.py
protos/fragment_metadata.proto`, `git diff --check`, and the
repository's typos and proto-comment hooks pass.

## Historical benchmark: inline vs spilled

The 400,000-row smoke run reported in #9340 compared inline and spilled
lineage within the same implementation. These are historical results for
the storage trade-off; performance gains against the current head of
this specification PR have not been measured.

Configuration: x86 r8i.8xlarge, local filesystem, `release-with-debug`,
2 fragments x 200,000 rows, and `BENCH_INLINE_MAX_BYTES=0` to force
spilling. Each arm ran once; timing rows report medians of samples
within that run. `shuffled` rewrites rows in random physical order
before compaction; `deleted` compacts after deletions. Lower is better
for every metric below.

| Scenario / metric | Inline | Spilled | Effect |
| --- | ---: | ---: | ---: |
| Shuffled / Steady-state manifest | 7.49 MiB | < 0.01 MiB | ~10,367x
smaller |
| Shuffled / Cold dataset open (median) | 4.32 ms | 0.12 ms | 36.5x
faster |
| Shuffled / Append commit (median) | 6.27 ms | 0.78 ms | 8.1x faster |
| Shuffled / Cold row-ID index build (median) | 36.11 ms | 35.53 ms |
~1.0x |
| Shuffled / Cold sequence load (median) | 0.18 ms | 1.97 ms | ~10.9x
slower |
| Shuffled / Compaction data-file bytes | 1.93 MiB | 2.96 MiB | ~1.53x
larger |
| Deleted / Steady-state manifest | 0.14 MiB | < 0.01 MiB | ~237x
smaller |
| Deleted / Cold row-ID index build (median) | 2.53 ms | 5.48 ms |
~2.17x slower |

Sizes are MiB, matching the [benchmark's
formatter](https://github.com/lance-format/lance/blob/8ebfde6f094c26e79602cf6c619929c137cbf5a5/rust/lance/benches/rowid_spill.rs#L829);
#9340 labeled them MB. Reported speedups and size reductions use
unrounded values; slowdown and growth factors above are approximate.

The main benefit in this run is smaller manifests and cheaper
open/commit work for shuffled lineage. Full-table row-ID index
construction stays about the same. The cost moves to the first sequence
read and to larger compaction output, so the open speedup is not an
end-to-end query speedup.

Scope: “cold” means a fresh Lance session with its caches disabled,
without evicting the OS page cache. Append timing covers the commit
only, excluding data-file writes. This single run does not establish
multi-run variance, remote-storage performance, or behavior under the
default 200 KiB budget. The later 2 x 2,000-row run for #9802 validates
functionality with the env var unset; it is not another performance
measurement. The table above comes from #9340's published summary; the
original run SHA and raw log were not recovered.

Refs #9250; follows #9791.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-format On-disk format: protos and format spec docs format-change A change to the format spec, which requires a vote. Remove if minor (e.g. fixing typo). K-approved Latest Gatekeeper recommendation permits acceptance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants