caoyj1991 commented on a change in pull request #6004:
URL: https://github.com/apache/dolphinscheduler/pull/6004#discussion_r693362541
##########
File path:
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/task/sql/SqlParameters.java
##########
@@ -251,8 +251,9 @@ public void dealOutParam(String result) {
sqlResultFormat.put(key, new ArrayList<>());
}
for (Map<String, String> info : sqlResult) {
- for (String key : info.keySet()) {
-
sqlResultFormat.get(key).add(String.valueOf(info.get(key)));
+ for (Map.Entry<String, String> entry : info.entrySet()) {
+ String key = entry.getKey();
+
sqlResultFormat.get(key).add(String.valueOf(entry.getValue()));
Review comment:
+1
--
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]