JingsongLi opened a new pull request, #8871: URL: https://github.com/apache/paimon/pull/8871
## Purpose Add an efficient, version-aware prefix/range iteration primitive to `LocalKvDb` for ListState and SetState. ## Changes - Add lazy half-open range iteration over the memtable and overlapping SST files. - Merge all sources in key order with newest-version-wins semantics. - Suppress deleted keys through tombstones instead of exposing older values. - Select overlapping non-L0 SST files with binary search. - Hold a levels read snapshot while an iterator is open so concurrent compaction cannot delete its input files. - Expose collecting and callback-based range scan conveniences. ## Verification - `mvn -q -pl paimon-common -Pfast-build -DwildcardSuites=none '-Dtest=LocalKvDbTest#testRangeScanMergesMemTableAndLevels+testForEachInRangeAcrossMemTableAndSingleSst+testRangeIteratorDeduplicatesVersionsAcrossAllSources+testRangeIteratorCrossesSstBlocks,LocalKvDbAsyncCompactionTest#testAutomaticCompactionRunsInBackground+testRangeIteratorPreventsCompactionFromDeletingItsFiles' test` - `mvn -q -pl paimon-common spotless:check -DskipTests` - `mvn -q -pl paimon-common -DskipTests compile` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
