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

   ### 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 using the SQL node, several situations have been found that prevent 
saving:
   
   - Using CASE WHEN statements within aggregate functions, e.g., `` SUM(CASE 
WHEN ... THEN ... END)`` .
   
![PixPin_2024-12-23_19-44-43](https://github.com/user-attachments/assets/6ba6f592-3d3a-401d-9ea0-a704653c709d)
   But the format `` max(case 1 when 1 then 2 end)`` can be saved normally
   
   - When the SQL includes the aggregate function `` GROUP_CONCAT()`` , see 
issue #14132 .
   
![PixPin_2024-12-23_19-43-29](https://github.com/user-attachments/assets/c301856c-fca7-48f3-8eea-d55caf38a45b)
   
   - Formatting, see issue #15559 .
   
![PixPin_2024-12-23_19-44-10](https://github.com/user-attachments/assets/c423bc11-534c-4b31-bd0f-02cce303bf57)
   
   The same SQL statement in the following format can be saved.
   
![PixPin_2024-12-23_19-42-31](https://github.com/user-attachments/assets/1735d7be-aa82-42b7-aabd-c57f413f65d3)
   
   
   Deployed on Kubernetes, both 3.1.x and 3.2.x have these issues.
   
   I hope this issue can be resolved soon. Thank you!
   
   ### What you expected to happen
   
   If there is no risk of SQL injection, then regardless of the format, it 
should be saved normally.
   
   ### How to reproduce
   
   As above.
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   3.1.x
   
   ### 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]

Reply via email to