docs: propose writer-local ReadLatest support#437
Conversation
3fe6b13 to
13e2c06
Compare
|
Thank you very much for this proposal. We have also recently been designing a similar capability in Paimon-cpp for several internal real-time use cases. |
13e2c06 to
5aaa7a2
Compare
|
Thank you for the feedback. We would be happy to schedule a design discussion. The core requirement behind this proposal is a stable, writer-local latest view: mutations should be readable before they are committed to a table snapshot, while the resulting read view remains valid as the writer continues its lifecycle. We see this as a low-level writer/read capability rather than a complete serving system. Your unified design for primary-key and append tables sounds closely related. We would be interested in understanding how it handles pre-snapshot visibility and stable read views, and discussing how the two approaches could align. Please let us know a convenient time and meeting channel. |
Purpose
Linked issue: N/A
Propose a writer-local
ReadLatestAPI for primary-key tables so an embedded application can readthe latest state accepted by its writer before snapshot commit, without changing normal snapshot
isolation for other readers.
The proposal defines visibility, read-view stability, primary-key merge behavior, resource lifetime,
compatibility, and an incremental implementation outline. It also records the validated prototype
surface and clearly marks the example API names as proposed rather than currently implemented.
Tests
pre-commit run --files docs/proposals/writer-read-latest.mdgit diff --check origin/main...HEADdocs/proposals/writer-read-latest.md.Documentation-only change; no code tests apply.
API and Format
No current public API, storage format, or protocol changes. The document proposes a future writer
API for community discussion.
Documentation
Adds
docs/proposals/writer-read-latest.mdwith the motivation, scope, proposed API and semantics,prototype validation, compatibility, and implementation outline.
Generative AI tooling
Generated-by: OpenAI Codex GPT-5