VanYue opened a new issue, #18154: URL: https://github.com/apache/dolphinscheduler/issues/18154
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened When performing data supplement on the main workflow, the main workflow correctly resolves the built-in time parameter $[yyyy-MM-dd-1] based on the supplement date selected by the user. However, the sub-workflow does not inherit this business date. Instead, it resolves $[yyyy-MM-dd-1] using the system's current date (the actual day the workflow runs), which makes data supplement incorrect. ### What you expected to happen Expected behavior: Sub-workflow should inherit the business date (supplement date) from the main workflow, and resolve $[yyyy-MM-dd-1] based on that business date, not the system's current date. Actual behavior: Sub-workflow ignores the supplement date context and uses the system's current date to resolve built-in time parameters. ### How to reproduce Main workflow: SQL task: select '${sd}' Parameter sd: $[yyyy-MM-dd-1] (type: varchar) Sub-workflow: SQL task: select '${sd}' Parameter sd: $[yyyy-MM-dd-1] (type: varchar) Trigger: Run data supplement on main workflow with date 2026-04-08 Check main workflow log → 2026-04-07 ✅ Check sub-workflow log → 2026-04-08 (if today is 2026-04-09) ❌ ### Anything else _No response_ ### Version 3.4.1 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
