Skip to content

Commit

Permalink
[Bugfix][FlinkJar]Fix FlinkJar args global variable parsing (#4113)
Browse files Browse the repository at this point in the history
Co-authored-by: zackyoungh <[email protected]>
  • Loading branch information
zackyoungh and zackyoungh authored Jan 3, 2025
1 parent 91af61a commit 779d803
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dinky-core/src/main/java/org/dinky/executor/Executor.java
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ public JobStatementPlan parseStatementIntoJobStatementPlan(String[] statements)
} else if (operationType.equals(SqlType.EXECUTE_JAR)) {
JarSubmitParam jarSubmitParam = JarSubmitParam.build(statement);
String args = jarSubmitParam.getArgs();
jarSubmitParam.setArgs("base64@" + Base64.encode(isUseSqlFragment() ? pretreatStatement(args) : args));
jarSubmitParam.setArgs("base64@"
+ Base64.encode(
isUseSqlFragment() ? getVariableManager().parseVariable(args) : args));
jobStatementPlan.addJobStatement(
jarSubmitParam.getStatement(), JobStatementType.EXECUTE_JAR, operationType);
} else if (operationType.equals(SqlType.EXECUTE)) {
Expand Down

0 comments on commit 779d803

Please sign in to comment.