dataroaring commented on code in PR #50489:
URL: https://github.com/apache/doris/pull/50489#discussion_r2062863708


##########
fe/fe-core/src/main/java/org/apache/doris/catalog/PartitionKey.java:
##########
@@ -594,8 +599,11 @@ public JsonElement serialize(PartitionKey partitionKey, 
java.lang.reflect.Type r
                 jsonArray.add(typeAndKey);
             }
 
-            // for compatibility in the future
-            jsonArray.add(new JsonPrimitive("unused"));
+            // use extend as a json to record some information
+            JsonArray extend = new JsonArray();
+            
extend.add(context.serialize(partitionKey.isDefaultListPartitionKey()));
+
+            jsonArray.add(new JsonPrimitive(GsonUtils.GSON.toJson(extend)));

Review Comment:
   add another unused to support extend in the future.



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to