Skip to content

Commit 2330da5

Browse files
committed
【fix】fix SideSqlExec
1 parent fd8dc57 commit 2330da5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

core/src/main/java/com/dtstack/flink/sql/side/SideSqlExec.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
package com.dtstack.flink.sql.side;
2222

23+
import com.dtstack.flink.sql.enums.EPluginLoadMode;
2324
import org.apache.flink.api.common.typeinfo.TypeInformation;
2425
import org.apache.flink.api.common.typeinfo.Types;
2526
import org.apache.flink.api.java.tuple.Tuple2;
@@ -104,7 +105,7 @@ public void exec(String sql,
104105
Map<String, Table> tableCache,
105106
CreateTmpTableParser.SqlParserResult createView,
106107
String scope) throws Exception {
107-
if (localSqlPluginPath == null) {
108+
if (localSqlPluginPath == null && !pluginLoadMode.equals(EPluginLoadMode.LOCALTEST.name())) {
108109
throw new RuntimeException("need to set localSqlPluginPath");
109110
}
110111

0 commit comments

Comments
 (0)