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

chufenggao pushed a commit to branch 3.1.5-prepare
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/3.1.5-prepare by this push:
     new 71a2d38a7f [improve-#13678] add filter in method of ``` setMainJarName 
``` (#13748)
71a2d38a7f is described below

commit 71a2d38a7f62e94248f3099dc68ae49e17a8ed7c
Author: fuchanghai <[email protected]>
AuthorDate: Thu Mar 16 17:26:07 2023 +0800

    [improve-#13678] add filter in method of ``` setMainJarName ``` (#13748)
    
    Co-authored-by: fuchanghai <‘[email protected]’>
---
 .../apache/dolphinscheduler/plugin/task/flink/FlinkStreamTask.java    | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/dolphinscheduler-task-plugin/dolphinscheduler-task-flink-stream/src/main/java/org/apache/dolphinscheduler/plugin/task/flink/FlinkStreamTask.java
 
b/dolphinscheduler-task-plugin/dolphinscheduler-task-flink-stream/src/main/java/org/apache/dolphinscheduler/plugin/task/flink/FlinkStreamTask.java
index 6d895d8834..c161812ee8 100644
--- 
a/dolphinscheduler-task-plugin/dolphinscheduler-task-flink-stream/src/main/java/org/apache/dolphinscheduler/plugin/task/flink/FlinkStreamTask.java
+++ 
b/dolphinscheduler-task-plugin/dolphinscheduler-task-flink-stream/src/main/java/org/apache/dolphinscheduler/plugin/task/flink/FlinkStreamTask.java
@@ -82,6 +82,10 @@ public class FlinkStreamTask extends FlinkTask implements 
StreamTask {
 
     @Override
     protected void setMainJarName() {
+        if (flinkParameters.getProgramType() == ProgramType.SQL) {
+            logger.info("The current flink stream job type is SQL, will no 
need to set main jar");
+            return;
+        }
         ResourceInfo mainJar = flinkParameters.getMainJar();
         String resourceName = getResourceNameOfMainJar(mainJar);
         mainJar.setRes(resourceName);

Reply via email to