Skip to content

Commit 5849f0d

Browse files
committed
fix
1 parent b58beff commit 5849f0d

File tree

12 files changed

+12
-47
lines changed

12 files changed

+12
-47
lines changed

include/paimon/global_index/indexed_split.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024-present Alibaba Inc.
2+
* Copyright 2025-present Alibaba Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

include/paimon/table/source/split.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024-present Alibaba Inc.
2+
* Copyright 2025-present Alibaba Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/paimon/common/global_index/complete_index_score_batch_reader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024-present Alibaba Inc.
2+
* Copyright 2025-present Alibaba Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/paimon/common/global_index/complete_index_score_batch_reader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024-present Alibaba Inc.
2+
* Copyright 2025-present Alibaba Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/paimon/common/global_index/complete_index_score_batch_reader_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024-present Alibaba Inc.
2+
* Copyright 2025-present Alibaba Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/paimon/common/utils/range.cpp

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -85,41 +85,6 @@ std::vector<Range> Range::And(const std::vector<Range>& left, const std::vector<
8585

8686
return results;
8787
}
88-
// std::vector<Range> MergeSortedAsPossible(const std::vector<Range>& ranges) {
89-
// if (ranges.empty() || ranges.size() == 1) {
90-
// return ranges;
91-
// }
92-
// std::vector<Range> results;
93-
// Range current = ranges[0];
94-
95-
// for (size_t i = 1; i < ranges.size(); ++i) {
96-
// Range next = ranges[i];
97-
// // Try to merge current and next
98-
// std::optional<Range> merged = Range::Union(current, next);
99-
// if (merged) {
100-
// // Merged successfully
101-
// current = merged;
102-
// } else {
103-
// // Cannot merge: add current to result and move to next
104-
// results.push_back(merged);
105-
// current = next;
106-
// }
107-
// }
108-
// // Add the last range
109-
// results.push_back(current);
110-
// return results;
111-
// }
112-
113-
// std::optional<Range> Range::Union(const Range& left, const Range& right) {
114-
// if (left.from <= right.from) {
115-
// if (left.to + 1 >= right.from) {
116-
// return Range(left.from, std::max(left.to, right.to));
117-
// }
118-
// } else if (right.to + 1 >= left.from) {
119-
// return Range(right.from, std::max(left.to, right.to));
120-
// }
121-
// return std::nullopt;
122-
// }
12388

12489
std::optional<Range> Range::Intersection(const Range& left, const Range& right) {
12590
int64_t start = std::max(left.from, right.from);

src/paimon/common/utils/range_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ TEST(RangeTest, TestSortAndMergeOverlap) {
109109
ASSERT_EQ(result, expected);
110110
}
111111
{
112-
// test no overlap with adjacent = falese
112+
// test no overlap with adjacent = false
113113
std::vector<Range> ranges = {Range(0, 10), Range(11, 20)};
114114
auto result = Range::SortAndMergeOverlap(ranges, /*adjacent=*/false);
115115
std::vector<Range> expected = {Range(0, 10), Range(11, 20)};

src/paimon/core/global_index/indexed_split_impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024-present Alibaba Inc.
2+
* Copyright 2025-present Alibaba Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/paimon/core/global_index/indexed_split_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024-present Alibaba Inc.
2+
* Copyright 2025-present Alibaba Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/paimon/core/table/source/data_split_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2024-present Alibaba Inc.
2+
* Copyright 2025-present Alibaba Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)