KaiSong-UK opened a new pull request, #18418:
URL: https://github.com/apache/dolphinscheduler/pull/18418

   ## Description
   
   Fix DataX task failure when using custom JSON template with resource files.
   
   ### Problem
   When users select "Custom template" (customConfig=1) and upload a JSON 
resource file in the DataX task definition, the json field is set to {} (empty 
object) instead of reading the resource file content. This causes DataX 
execution to fail because the generated JSON has missing reader/writer plugin 
configurations.
   
   ### Root Cause
   In DataxTask.buildDataxJsonFile(), when customConfig == Flag.YES, the method 
only uses dataXParameters.getJson() without checking if a resource file was 
provided. The resource file is already downloaded to the execution path by the 
framework, but the task code never reads it.
   
   ### Fix
   When customConfig == YES and the json field is empty or "{}", check the  
esourceList for JSON resource files. If found, read the first matching JSON 
resource file from the execution directory and use its content as the DataX job 
JSON.
   
   Closes #18389
   


-- 
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]

Reply via email to