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/incubator-paimon.git


The following commit(s) were added to refs/heads/master by this push:
     new c7915af47 [hotfix] Modify the wrong word from filed to field. (#1615)
c7915af47 is described below

commit c7915af4749ca16c2dc68d8f7998b92822188ea0
Author: Kerwin <[email protected]>
AuthorDate: Fri Jul 21 19:03:08 2023 +0800

    [hotfix] Modify the wrong word from filed to field. (#1615)
---
 paimon-core/src/main/java/org/apache/paimon/Snapshot.java         | 8 ++++----
 .../paimon/mergetree/compact/PartialUpdateMergeFunctionTest.java  | 2 +-
 .../java/org/apache/paimon/format/orc/writer/OrcBulkWriter.java   | 4 ++--
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/paimon-core/src/main/java/org/apache/paimon/Snapshot.java 
b/paimon-core/src/main/java/org/apache/paimon/Snapshot.java
index 183f45324..15ebf8e1d 100644
--- a/paimon-core/src/main/java/org/apache/paimon/Snapshot.java
+++ b/paimon-core/src/main/java/org/apache/paimon/Snapshot.java
@@ -83,7 +83,7 @@ public class Snapshot {
     private static final String FIELD_TOTAL_RECORD_COUNT = "totalRecordCount";
     private static final String FIELD_DELTA_RECORD_COUNT = "deltaRecordCount";
     private static final String FIELD_CHANGELOG_RECORD_COUNT = 
"changelogRecordCount";
-    private static final String FILED_WATERMARK = "watermark";
+    private static final String FIELD_WATERMARK = "watermark";
 
     // version of snapshot
     // null for paimon <= 0.2
@@ -162,7 +162,7 @@ public class Snapshot {
     // null for paimon <= 0.3
     // null if there is no watermark in new committing, and the previous 
snapshot does not have a
     // watermark
-    @JsonProperty(FILED_WATERMARK)
+    @JsonProperty(FIELD_WATERMARK)
     @Nullable
     private final Long watermark;
 
@@ -218,7 +218,7 @@ public class Snapshot {
             @JsonProperty(FIELD_TOTAL_RECORD_COUNT) Long totalRecordCount,
             @JsonProperty(FIELD_DELTA_RECORD_COUNT) Long deltaRecordCount,
             @JsonProperty(FIELD_CHANGELOG_RECORD_COUNT) Long 
changelogRecordCount,
-            @JsonProperty(FILED_WATERMARK) Long watermark) {
+            @JsonProperty(FIELD_WATERMARK) Long watermark) {
         this.version = version;
         this.id = id;
         this.schemaId = schemaId;
@@ -318,7 +318,7 @@ public class Snapshot {
         return changelogRecordCount;
     }
 
-    @JsonGetter(FILED_WATERMARK)
+    @JsonGetter(FIELD_WATERMARK)
     @Nullable
     public Long watermark() {
         return watermark;
diff --git 
a/paimon-core/src/test/java/org/apache/paimon/mergetree/compact/PartialUpdateMergeFunctionTest.java
 
b/paimon-core/src/test/java/org/apache/paimon/mergetree/compact/PartialUpdateMergeFunctionTest.java
index eefba63c1..0472adb9f 100644
--- 
a/paimon-core/src/test/java/org/apache/paimon/mergetree/compact/PartialUpdateMergeFunctionTest.java
+++ 
b/paimon-core/src/test/java/org/apache/paimon/mergetree/compact/PartialUpdateMergeFunctionTest.java
@@ -158,7 +158,7 @@ public class PartialUpdateMergeFunctionTest {
 
         MergeFunction<KeyValue> func = 
factory.create(adjustedProjection.pushdownProjection);
         func.reset();
-        // if sequence filed is null, the related fields should not be updated
+        // if sequence field is null, the related fields should not be updated
         add(func, 1, 1, 1, 1, 1);
         add(func, 1, null, 1, 2, 2);
         validate(func, 1, 1, 1, 2, 2);
diff --git 
a/paimon-format/src/main/java/org/apache/paimon/format/orc/writer/OrcBulkWriter.java
 
b/paimon-format/src/main/java/org/apache/paimon/format/orc/writer/OrcBulkWriter.java
index 252b21bfa..34278638f 100644
--- 
a/paimon-format/src/main/java/org/apache/paimon/format/orc/writer/OrcBulkWriter.java
+++ 
b/paimon-format/src/main/java/org/apache/paimon/format/orc/writer/OrcBulkWriter.java
@@ -57,7 +57,7 @@ public class OrcBulkWriter implements FormatWriter {
         this.vectorizer.setWriter(this.writer);
         this.underlyingStream = underlyingStream;
         // TODO: Turn to access these hidden field directly after upgrade to 
ORC 1.7.4
-        this.treeWriter = getHiddenFiledInORC("treeWriter");
+        this.treeWriter = getHiddenFieldInORC("treeWriter");
     }
 
     @Override
@@ -97,7 +97,7 @@ public class OrcBulkWriter implements FormatWriter {
     }
 
     @SuppressWarnings("unchecked")
-    private <T> T getHiddenFiledInORC(String fieldName) {
+    private <T> T getHiddenFieldInORC(String fieldName) {
         try {
             Field treeWriterField = 
writer.getClass().getDeclaredField(fieldName);
             AccessController.doPrivileged(

Reply via email to