Repository navigation
Conversation
Parse snapshot integer fields and table sequence and row ID bounds exactly. Check the bounds against retained snapshots on read, write, and build, including V3 snapshots with conservative added-rows bounds. Co-authored-by: Codex <codex@openai.com>
This was referenced Nov 24, 2026
manuzhang
marked this pull request as ready for review
November 24, 2026 10:43
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.
Why
JSON conversion could truncate or wrap integer-valued snapshot fields,
last-sequence-number, andnext-row-id. A table could also carry bounds below values in its retained snapshots, so a later commit could allocate sequence numbers or row IDs from a stale starting point.What
last-sequence-numberwith retained snapshot sequence numbers and V3next-row-idwith retainedfirst-row-idvalues. Allow bounds above retained values after expiration and accept conservative V3added-rowsestimates.TableMetadata::ValidateSequenceAndRowIdBoundsacross metadata reads, writes, and builds. It is an instance method because the checks depend on the table's format version, bounds, and retained snapshots.Validation
Local validation passed for table, JSON, catalog, REST, C++20, and 33 expiration tests, plus pre-commit. REST had one existing skip. The combined patch passed the table and JSON suites.