Skip to content

Commit 8c19de4

Browse files
author
gituser
committed
Merge branch '1.10_release_4.2.x' into 1.10_test_4.2.x
2 parents b378a0e + adeb5a0 commit 8c19de4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

core/src/main/java/com/dtstack/flink/sql/util/PluginUtil.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,14 @@ public static URL buildDirtyPluginUrl(
186186
prefix,
187187
pluginLoadMode
188188
);
189-
String path = remotePath == null ? localPath : remotePath;
189+
190+
String path;
191+
if (StringUtils.equalsIgnoreCase(pluginLoadMode, EPluginLoadMode.CLASSPATH.name())) {
192+
path = remotePath == null ? localPath : remotePath;
193+
} else {
194+
path = localPath;
195+
}
196+
190197
String dirtyPath = path + SP + DIRTY_DATA_PRE + SP + dirtyType;
191198
URI uri = URI.create("file:" + dirtyPath + SP + jarFileName);
192199
return uri.toURL();

0 commit comments

Comments
 (0)