Repository navigation
[core] Support changelog-on-read for primary-key tables - #10867
Draft
discivigour wants to merge 12 commits into
Draft
discivigour wants to merge 12 commits into
discivigour wants to merge 12 commits into
Conversation
added 9 commits
October 29, 2026 17:42
# Conflicts: # paimon-core/src/main/java/org/apache/paimon/mergetree/compact/LookupMergeFunction.java # paimon-core/src/test/java/org/apache/paimon/mergetree/compact/LookupMergeFunctionTest.java
Use the current read-view file level when reading cached lookup files, and apply the RowKind tie-breaker when sorting history with equal sequences. Reject lookup joins on changelog-producer=on-read tables at the Flink source entry point. Add regression coverage for cache upgrades, history ordering, and lookup cache modes with synchronous and asynchronous execution.
discivigour
force-pushed
the
feixu/changelog-on-read
branch
from
October 29, 2026 09:51
ce54835 to
2b2d6e8
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
Add
changelog-producer=on-readso streaming readers can reconstruct inserts, updates, and deletes from data files without storing separate changelog files. For example, changing an existing key from4to5emitsUPDATE_BEFORE(4)andUPDATE_AFTER(5)when the new snapshot is read.changelog-on-read.lookup-state.max-size. Release lookup and spill resources on eviction and reader close.Tests
ChangelogOnReadTest,FileStoreSourceReaderTest,AlignedContinuousFileSplitEnumeratorTest,AlignedSourceReaderTest,AlignedSplitAssignerTest, andTableScanUtilsTest.AlignedSourceReaderTestcases initially failed because the test runtime selected Avro 1.11.3, which lacksDataFileWriter.setEncoder. Both passed when rerun with the repository-declared Avro 1.11.4 through temporary test classpath overrides; no dependency files were changed.