This is an automated email from the ASF dual-hosted git repository.
yuzelin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git
The following commit(s) were added to refs/heads/master by this push:
new 94e5265ddf [test][dv] fix wrong test for Bitmap64DeletionVector (#5487)
94e5265ddf is described below
commit 94e5265ddf43b6232809571c240205ddcfa0ed3b
Author: LsomeYeah <[email protected]>
AuthorDate: Thu Apr 17 17:17:23 2025 +0800
[test][dv] fix wrong test for Bitmap64DeletionVector (#5487)
---
.../java/org/apache/paimon/deletionvectors/DeletionVectorTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/paimon-core/src/test/java/org/apache/paimon/deletionvectors/DeletionVectorTest.java
b/paimon-core/src/test/java/org/apache/paimon/deletionvectors/DeletionVectorTest.java
index a742c1c309..a5bd483f4a 100644
---
a/paimon-core/src/test/java/org/apache/paimon/deletionvectors/DeletionVectorTest.java
+++
b/paimon-core/src/test/java/org/apache/paimon/deletionvectors/DeletionVectorTest.java
@@ -70,8 +70,8 @@ public class DeletionVectorTest {
for (int i = 0; i < 10000; i++) {
toDelete.add(ThreadLocalRandom.current().nextLong(Integer.MAX_VALUE * 2L));
}
- HashSet<Integer> notDelete = new HashSet<>();
- for (int i = 0; i < 10000; i++) {
+ HashSet<Long> notDelete = new HashSet<>();
+ for (long i = 0; i < 10000; i++) {
if (!toDelete.contains(i)) {
notDelete.add(i);
}
@@ -93,7 +93,7 @@ public class DeletionVectorTest {
assertThat(deletionVector.isDeleted(i)).isTrue();
assertThat(deserializedDeletionVector.isDeleted(i)).isTrue();
}
- for (Integer i : notDelete) {
+ for (Long i : notDelete) {
assertThat(deletionVector.isDeleted(i)).isFalse();
assertThat(deserializedDeletionVector.isDeleted(i)).isFalse();
}