This is an automated email from the ASF dual-hosted git repository.
lzljs3620320 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 42ceb8580 [core] Fix bug of DataFileMeta's to_string() (#3259)
42ceb8580 is described below
commit 42ceb8580a4dcce5e61665ef31d8bd9e8318e4fd
Author: wangwj <[email protected]>
AuthorDate: Thu Apr 25 16:20:21 2024 +0800
[core] Fix bug of DataFileMeta's to_string() (#3259)
---
paimon-core/src/main/java/org/apache/paimon/io/DataFileMeta.java | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/paimon-core/src/main/java/org/apache/paimon/io/DataFileMeta.java
b/paimon-core/src/main/java/org/apache/paimon/io/DataFileMeta.java
index fdf7266bd..c5e7c627f 100644
--- a/paimon-core/src/main/java/org/apache/paimon/io/DataFileMeta.java
+++ b/paimon-core/src/main/java/org/apache/paimon/io/DataFileMeta.java
@@ -37,6 +37,7 @@ import javax.annotation.Nullable;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.util.ArrayList;
+import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
@@ -354,7 +355,7 @@ public class DataFileMeta {
return Objects.equals(fileName, that.fileName)
&& fileSize == that.fileSize
&& rowCount == that.rowCount
- && Objects.equals(embeddedIndex, that.embeddedIndex)
+ && Arrays.equals(embeddedIndex, that.embeddedIndex)
&& Objects.equals(minKey, that.minKey)
&& Objects.equals(maxKey, that.maxKey)
&& Objects.equals(keyStats, that.keyStats)
@@ -374,7 +375,7 @@ public class DataFileMeta {
fileName,
fileSize,
rowCount,
- embeddedIndex,
+ Arrays.hashCode(embeddedIndex),
minKey,
maxKey,
keyStats,
@@ -391,14 +392,14 @@ public class DataFileMeta {
@Override
public String toString() {
return String.format(
- "{fileName: %s, fileSize: %d, rowCount: %d, "
+ "{fileName: %s, fileSize: %d, rowCount: %d, embeddedIndex: %s,
"
+ "minKey: %s, maxKey: %s, keyStats: %s, valueStats:
%s, "
+ "minSequenceNumber: %d, maxSequenceNumber: %d, "
+ "schemaId: %d, level: %d, extraFiles: %s,
creationTime: %s, deleteRowCount: %d}",
fileName,
fileSize,
rowCount,
- embeddedIndex,
+ Arrays.toString(embeddedIndex),
minKey,
maxKey,
keyStats,