zhangyue19921010 opened a new pull request, #11105: URL: https://github.com/apache/paimon/pull/11105
### Purpose Fixes #11104. A Data Evolution read with `_ROW_ID BETWEEN 0 AND 9223372036854775807 OR _ROW_ID = 0` can silently skip later files. With ten rows committed in two batches, the original code returns only `0..4` instead of `0..9`. Check overlap before adjacency in `Range.sortAndMergeOverlap` so a maximum upper bound cannot overflow before overlapping ranges are merged. This preserves the sorted, disjoint ranges required by `RowRangeIndex`. ### Tests Added regressions for predicate range normalization, range-index lookups, and a two-commit Data Evolution table read. All three fail on unchanged production code at `68023de11` and pass with the fix. Verified 142 tests across `RangeTest`, `RowIdPredicateVisitorTest`, `RowRangeIndexTest`, `DataEvolutionTableTest`, `DataEvolutionBatchScanTest`, and `ManifestSidecarTest` with `mvn -pl paimon-core -am ... verify`, JDK 11, and no `fast-build`. Checkstyle, Spotless, Enforcer, and RAT passed. An independent agent reviewed the complete diff at `afb822e49` with no material findings. - [x] Community Review -- 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]
