XiaoHongbo-Hope commented on code in PR #6784:
URL: https://github.com/apache/paimon/pull/6784#discussion_r2619320312


##########
paimon-api/src/main/java/org/apache/paimon/partition/Partition.java:
##########
@@ -25,38 +25,127 @@
 import 
org.apache.paimon.shade.jackson2.com.fasterxml.jackson.annotation.JsonIgnoreProperties;
 import 
org.apache.paimon.shade.jackson2.com.fasterxml.jackson.annotation.JsonProperty;
 
+import javax.annotation.Nullable;
+
 import java.util.Map;
 import java.util.Objects;
 
+import static 
org.apache.paimon.rest.responses.AuditRESTResponse.FIELD_CREATED_AT;
+import static 
org.apache.paimon.rest.responses.AuditRESTResponse.FIELD_CREATED_BY;
+import static 
org.apache.paimon.rest.responses.AuditRESTResponse.FIELD_UPDATED_AT;
+import static 
org.apache.paimon.rest.responses.AuditRESTResponse.FIELD_UPDATED_BY;
+
 /** Represent a partition, including statistics and done flag. */
 @JsonIgnoreProperties(ignoreUnknown = true)
 @Public
 public class Partition extends PartitionStatistics {
 
-    private static final long serialVersionUID = 2L;
+    private static final long serialVersionUID = 3L;
 
     public static final String FIELD_DONE = "done";
+    public static final String FIELD_OPTIONS = "options";
 
     @JsonProperty(FIELD_DONE)
     private final boolean done;
 
+    @Nullable

Review Comment:
   > `@JsonInclude(JsonInclude.Include.NON_NULL)` for all new fields.
   
   added



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to