Skip to content

[Fix-17943][dolphinscheduler-task-dinky] When DolphinScheduler calls a Dinky job and passes date parameters, the actual values are not being replaced#17945

Open
shaolei7788 wants to merge 7 commits intoapache:devfrom
shaolei7788:dev
Open

[Fix-17943][dolphinscheduler-task-dinky] When DolphinScheduler calls a Dinky job and passes date parameters, the actual values are not being replaced#17945
shaolei7788 wants to merge 7 commits intoapache:devfrom
shaolei7788:dev

Conversation

@shaolei7788
Copy link

@shaolei7788 shaolei7788 commented Feb 4, 2026

Purpose of the pull request

close #17943

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(or)

Pull Request Notice

Pull Request Notice

If your pull request contains incompatible change, you should also add it to docs/docs/en/guide/upgrade/incompatible.md

@boring-cyborg
Copy link

boring-cyborg bot commented Feb 4, 2026

Thanks for opening this pull request! Please check out our contributing guidelines. (https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/contribute/join/pull-request.md)

@SbloodyS SbloodyS changed the title [Fix-17943] the actual values are not being replaced [Fix-17943][dolphinscheduler-task-dinky] When DolphinScheduler calls a Dinky job and passes date parameters, the actual values are not being replaced Feb 4, 2026
@SbloodyS SbloodyS added bug Something isn't working first time contributor First-time contributor labels Feb 4, 2026
@SbloodyS SbloodyS added this to the 3.4.1 milestone Feb 4, 2026
Copy link
Member

@SbloodyS SbloodyS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't directly using AI genrerated code.

@shaolei7788
Copy link
Author

Please don't directly using AI genrerated code.

No,I don't

zhongjiajie and others added 5 commits February 6, 2026 11:25
Co-authored-by: xiangzihao <zihaoxiang@apache.org>
Co-authored-by: xiangzihao <zihaoxiang@apache.org>
Co-authored-by: xiangzihao <zihaoxiang@apache.org>
Co-authored-by: xiangzihao <zihaoxiang@apache.org>
Co-authored-by: xiangzihao <zihaoxiang@apache.org>
Comment on lines +355 to +371
if (Objects.isNull(variables.get(localParam.getProp())) || variables.get(localParam.getProp()).isEmpty()) {
if (localParam.getValue() != null && !localParam.getValue().isEmpty()) {
String value = ParameterUtils.convertParameterPlaceholders(localParam.getValue(), variables);
if (StringUtils.isNotBlank(value)) {
variables.put(localParam.getProp(), value);
}
} else {
if (!globalParams.isEmpty()) {
for (Property globalParam : globalParams) {
if (globalParam.getProp().equals(localParam.getProp())) {
if (globalParam.getValue() != null && !globalParam.getValue().isEmpty()) {
String value = ParameterUtils.convertParameterPlaceholders(globalParam.getValue(), variables);
if (StringUtils.isNotBlank(value)) {
variables.put(localParam.getProp(), value);
}
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we find some ways to avoid such many condition here?

@zhongjiajie
Copy link
Member

I remember we have CI check detect whether it have chinese in PR, does it still working? @SbloodyS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend bug Something isn't working first time contributor First-time contributor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] [dolphinscheduler-task-dinky] When DolphinScheduler calls a Dinky job and passes date parameters, the actual values are not being replaced

3 participants