huangchenguang123 opened a new issue, #10820:
URL: https://github.com/apache/dolphinscheduler/issues/10820

   ### 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
   
   <img width="582" alt="image" 
src="https://user-images.githubusercontent.com/37766284/177674682-7611977e-31c3-487c-a299-cd2d26f3f74f.png";>
   
![image](https://user-images.githubusercontent.com/37766284/177675212-8b6eca82-0883-461e-b19a-0f724bcd1f66.png)
   
   CustomParams is missing type and direct.
   when you use param,the master will npe because property.getDirect() is null.
   
![image](https://user-images.githubusercontent.com/37766284/177675212-8b6eca82-0883-461e-b19a-0f724bcd1f66.png)
   
   But even if you fix the above problem, custom parameters still won't work 
because parameters are not replaced.
   
   
   ### What you expected to happen
   
   spark sql can use custom params.
   
   ### How to reproduce
   
   create a spark task, choose sql and add custom param.
   
   ### Anything else
   
   none.
   
   ### Version
   
   dev
   
   ### Are you willing to submit PR?
   
   - [X] 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]

Reply via email to