starocean999 commented on code in PR #64026:
URL: https://github.com/apache/doris/pull/64026#discussion_r3418629461


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/info/AlterMultiPartitionOp.java:
##########
@@ -89,18 +91,27 @@ public Map<String, String> getProperties() {
      * getPartitionKeyDesc
      */
     public PartitionKeyDesc getPartitionKeyDesc() {
-        List<PartitionValue> fromValues = fromExpression.stream()
-                .map(this::toLegacyPartitionValue)
-                .collect(Collectors.toList());
-        List<PartitionValue> toValues = toExpression.stream()
-                .map(this::toLegacyPartitionValue)
-                .collect(Collectors.toList());
+        validateBoundaryValueCount();
+        List<PartitionValue> fromValues = new ArrayList<>();
+        for (int i = 0; i < fromExpression.size(); i++) {
+            Expression typedFrom = typedExpression(fromExpression.get(i), i);
+            fromValues.add(toLegacyPartitionValue(typedFrom));

Review Comment:
   这几个函数的实现在基类PartitionDefinition,但各个派生类具体的数据结构不同,调用的方式也不同,暂时没有想到更好的方式处理这个问题



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to