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 cf98e722a1 [core] Use correct parameters order when call methods 
newDescription and newDefaultValue for DataField (#5842)
cf98e722a1 is described below

commit cf98e722a1cd95314a3a7d109edb6d323bef9bd2
Author: Nikolay Volik <[email protected]>
AuthorDate: Fri Jul 4 14:44:15 2025 +0200

    [core] Use correct parameters order when call methods newDescription and 
newDefaultValue for DataField (#5842)
---
 paimon-api/src/main/java/org/apache/paimon/types/DataField.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/paimon-api/src/main/java/org/apache/paimon/types/DataField.java 
b/paimon-api/src/main/java/org/apache/paimon/types/DataField.java
index dcca909d52..968de13e15 100644
--- a/paimon-api/src/main/java/org/apache/paimon/types/DataField.java
+++ b/paimon-api/src/main/java/org/apache/paimon/types/DataField.java
@@ -94,11 +94,11 @@ public final class DataField implements Serializable {
     }
 
     public DataField newDescription(String newDescription) {
-        return new DataField(id, name, type, defaultValue, newDescription);
+        return new DataField(id, name, type, newDescription, defaultValue);
     }
 
     public DataField newDefaultValue(String newDefaultValue) {
-        return new DataField(id, name, type, newDefaultValue, description);
+        return new DataField(id, name, type, description, newDefaultValue);
     }
 
     @Nullable

Reply via email to