feat(realtime): support shredding-aware realtime reads & refactor rt read - #269
Open
lxy-9602 wants to merge 3 commits into
Open
feat(realtime): support shredding-aware realtime reads & refactor rt read#269lxy-9602 wants to merge 3 commits into
lxy-9602 wants to merge 3 commits into
Conversation
lxy-9602
force-pushed
the
refactor-rt
branch
from
September 1, 2026 09:51
56b3655 to
997d4b1
Compare
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.
Purpose
Linked issue: #158
This change moves realtime offset handling from
RealtimeStoreplugins into the Paimon read framework and adds shredding-aware realtime reads for both append-only and primary-key tables.The main changes are:
_REALTIME_OFFSETbefore append batches are passed toRealtimeStore.offset_beginfromRealtimeStore::CreateQueryReaders.RealtimeQueryContext::enable_predicate_pushdown; callers now decide whether to pass a predicate.RealtimeOffsetBatchReaderto:_REALTIME_OFFSETvalues and a left-closed, right-open visible range;_REALTIME_OFFSETbefore passing data downstream.RealtimeStoreReadPipeline, shared by append-only and primary-key query paths:RealtimeStore;KeyValueDataFileRecordReaderfor primary-key realtime data.CreateForQueryandCreateForCommit.CreateWriteSchemaincludes_VALUE_KIND,_SEQUENCE_NUMBER, and_REALTIME_OFFSET;CreateLogicalSchemaexcludes_REALTIME_OFFSET.The resulting query pipeline is:
Disk and realtime-memory data now produce the same logical output for shared-shredding MAP and VARIANT projections.
Tests
Added or updated coverage for:
API and Format
This changes the
RealtimeStoreplugin contract:CreateQueryReadersno longer receivesoffset_begin.RealtimeQueryContext::enable_predicate_pushdownis removed._REALTIME_OFFSET.Documentation
Generative AI tooling
Generated-by: OpenAI Codex (GPT-5)