Repository navigation
feat(cli): indexes, slot members, write tags and table statistics (chunkdb/chunkdb#151) - #61
Merged
Merged
Conversation
Decode typed block value pages, secondary index metadata and build progress. Support explicit scan permission and the boolean session option for rectangular queries. Use server-assigned slot partitions, qualify acknowledgements with each watch generation and rejoin at rebalance. Support tagged writes and tagged shell transactions, and validate promotion lineage and WAL archive metrics. Route indexes named if by their target table. Drain stale member ACK replies and refresh projections on the returned socket. Bound tag file reads locally and use the negotiated wire limit with a lookup-specific allowance for decoded rows. Reject duplicate page keys and accept trailing row fields. Test valid rectangular continuations and bare-name projections against chunkdb. Document that standalone lookup replies are decoded using a separately fetched table schema.
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.
Part of chunkdb/chunkdb#151 ("Every statement has a typed helper in Go and JS and a command form in the CLI" and "Decoding of every reply shape").
The CLI prints typed GET BLOCKS WHERE rows and continuation cursors. It supports explicit scan permission and the boolean HELLO opt-in for larger rectangular queries, displays secondary index definitions in DESCRIBE and WATCH CATALOG, and checks index build progress in SHOW CONNECTIONS.
Slot members see their assigned partitions and generation. The CLI sends generation-qualified ACKs, drains late ACK replies, and refreshes projections and rejoins on the returned socket after rebalance. Tagged writes retain typed RETURNING output and chunk import validation. Shell transactions accept a binary BEGIN tag. The CLI rejects tag files above 256 bytes locally, and text feeds show tags in hex.
PROMOTE TABLE replies are checked for their new epoch and fork lineage. WAL archive statistics and seal time bounds are validated. The backup guide points to the server tool for offline revision and commit-time restores.
Wire fixtures cover full-width lookup pages, duplicate keys and trailing row fields, scan refusals, coalesced replies, routing and catalog events, member reassignment and late ACKs, binary tag limits, promotion outcomes, and table and archive counters. Integration coverage checks the rectangular continuation and projection syntax against chunkdb. GitHub CI runs these checks.
Binding a standalone lookup to its schema under the server's read lease requires a server protocol follow-up under chunkdb/chunkdb#147, then client validation under #151. The CLI uses DESCRIBE to decode current replies. The Go and JavaScript typed helpers and decoders are tracked in their respective client changes.