This is an automated email from the ASF dual-hosted git repository.

wenjun pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 19ffd64e23 Fix complement data date order will change due to use set 
(#13487)
19ffd64e23 is described below

commit 19ffd64e23bdc27c7af50ef0c8518d81e0a0e15b
Author: dddyszy <[email protected]>
AuthorDate: Fri Feb 3 19:44:45 2023 +0800

    Fix complement data date order will change due to use set (#13487)
---
 .../dolphinscheduler/api/service/impl/ExecutorServiceImpl.java       | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git 
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ExecutorServiceImpl.java
 
b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ExecutorServiceImpl.java
index 765c5c7a38..5a31c8efdd 100644
--- 
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ExecutorServiceImpl.java
+++ 
b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ExecutorServiceImpl.java
@@ -1274,9 +1274,8 @@ public class ExecutorServiceImpl extends BaseServiceImpl 
implements ExecutorServ
      */
     private String removeDuplicates(String scheduleTimeList) {
         if (StringUtils.isNotEmpty(scheduleTimeList)) {
-            Set<String> dateSet =
-                    
Arrays.stream(scheduleTimeList.split(COMMA)).map(String::trim).collect(Collectors.toSet());
-            return String.join(COMMA, dateSet);
+            return 
Arrays.stream(scheduleTimeList.split(COMMA)).map(String::trim).distinct()
+                    .collect(Collectors.joining(COMMA));
         }
         return null;
     }

Reply via email to