luoyuxia commented on code in PR #177:
URL: https://github.com/apache/paimon-rust/pull/177#discussion_r3031606072
##########
crates/paimon/src/table/source.rs:
##########
@@ -339,3 +423,60 @@ impl Plan {
&self.splits
}
}
+
+// ======================= Helper Functions ===============================
+
+/// Merges overlapping row ID ranges into groups.
+///
+/// Files are sorted by `(start, end)` of their row ID range, then grouped
+/// by overlapping ranges. Two ranges overlap if `current.start <=
previous_group_end`.
+///
+/// Reference:
[RangeHelper.mergeOverlappingRanges()](https://github.com/apache/paimon/blob/release-1.3/paimon-common/src/main/java/org/apache/paimon/utils/RangeHelper.java#L59)
+fn merge_overlapping_row_id_ranges(files: &[DataFileMeta]) ->
Vec<Vec<&DataFileMeta>> {
Review Comment:
Thanks Not noticed it.
--
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]