wangxj3 commented on code in PR #16420:
URL: 
https://github.com/apache/dolphinscheduler/pull/16420#discussion_r1706436715


##########
dolphinscheduler-task-plugin/dolphinscheduler-task-procedure/src/main/java/org/apache/dolphinscheduler/plugin/task/procedure/ProcedureParameters.java:
##########
@@ -104,6 +104,14 @@ public void dealOutParam4Procedure(Object result, String 
pop) {
             return;
         }
         properties.get(pop).setValue(String.valueOf(result));
+        if (!varPool.isEmpty()) {
+            for (Property info : varPool) {
+                if (pop.equals(info.getProp())) {
+                    varPool.remove(info);
+                    break;
+                }
+            }
+        }

Review Comment:
   > What I mean is remove duplicated value of `varPool` in 
`AbstractParameters`.
   
   
![图片](https://github.com/user-attachments/assets/36cefe83-2e8b-4f45-a902-db94b5541277)
   this is the method merge the out params in AbstractParameters, the 
inputparams of this method is varpool and outProperty,This is sequential. It 
will be inserted into the map according to the order of varpool and then 
outProperty. The map will filter out duplicate values, and because outProperty 
is behind, it will overwrite the duplicate values of varpool.Do you mean this?



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