zhongjiajie commented on issue #13995:
URL: 
https://github.com/apache/dolphinscheduler/issues/13995#issuecomment-1519289330

   it is a good idea, but the reason why hive cli can use resource files and 
execute them, is `hive cli` use `hive -f ` shell command  to the task. it can 
download the resource file from the resource center, and run the command with 
`hive -f <resource-file>`.
   
   But for SQL tasks, we directly post sql scripts to jdbc connection, if we 
want to make resource file work, should change code frame in 
https://github.com/apache/dolphinscheduler/blob/34f5b009e18dbeeda20c5befb0dc44ed74b826da/dolphinscheduler-task-plugin/dolphinscheduler-task-sql/src/main/java/org/apache/dolphinscheduler/plugin/task/sql/SqlTask.java#L155-L158
 by reading resource file content


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