You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had searched in the issues and found no similar feature requirement.
Description
Currently, for task-java
ParameterUtils.convertParameterPlaceholders will replace placeholder for the Java Code if Java Task run in the Java Mode.
However if run the Java Task in Jar Mode, I cannot pass Parameters to the task, because in the mainArgs and jvmArgs do not have ParameterUtils.convertParameterPlaceholders to replace the placeholders with parameter value.
If we enable placeholder replacement for args, JavaTask in Jar Mode can get the value of Parameters in args.
Similiarily, for task-spark
ParameterUtils.convertParameterPlaceholders will replace placeholder for the SQL Code if Java Task run in the SQLMode.
However if run the Spark Task in other Mode, cannot pass the parameters to the task, because mainArgs and otherArgs do not have ParameterUtils.convertParameterPlaceholders to replace the placeholders with parameter value.
If we enable placeholder replacement for args, SparkTask in Mode other than SQL can get the value of Parameters in args.
I purpose this Improvement because in my team, we save some common data such in project parameters.
And use these parameters in different processes and tasks, then I notice JavaTask in Jar Mode and Spark Task not in SQL Mode cannot use these parameters.
I actually add placeholder replacement for Java Task in Jar Mode in our teams' cluster.
Hope the core member agree with this purposal, I can submit PR for this feature/improvement.
Search before asking
Description
Currently, for task-java
ParameterUtils.convertParameterPlaceholders will replace placeholder for the Java Code if Java Task run in the Java Mode.
However if run the Java Task in Jar Mode, I cannot pass Parameters to the task, because in the mainArgs and jvmArgs do not have ParameterUtils.convertParameterPlaceholders to replace the placeholders with parameter value.
If we enable placeholder replacement for args, JavaTask in Jar Mode can get the value of Parameters in args.
Similiarily, for task-spark
ParameterUtils.convertParameterPlaceholders will replace placeholder for the SQL Code if Java Task run in the SQLMode.
However if run the Spark Task in other Mode, cannot pass the parameters to the task, because mainArgs and otherArgs do not have ParameterUtils.convertParameterPlaceholders to replace the placeholders with parameter value.
If we enable placeholder replacement for args, SparkTask in Mode other than SQL can get the value of Parameters in args.
I purpose this Improvement because in my team, we save some common data such in project parameters.
And use these parameters in different processes and tasks, then I notice JavaTask in Jar Mode and Spark Task not in SQL Mode cannot use these parameters.
I actually add placeholder replacement for Java Task in Jar Mode in our teams' cluster.
Hope the core member agree with this purposal, I can submit PR for this feature/improvement.
Are you willing to submit a PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: