[Bug] [SQL Task]Remove trailing semicolons from a SQL sentence. #15374
Labels
bug
Something isn't working
Waiting for user feedback
Waiting for feedback from issue/PR author
wontfix
This will not be worked on
Search before asking
What happened
If a SQL task only has one SQL sentence, then this line will not ended with a ";/n" or ";/r/n". Instead it just has a trailing ";". In this case we need to manually remove the trailing ";", or it may cause a syntax error in some JDBC implementations (e.g. Hive JDBC).
What you expected to happen
If a SQL task only contains one single line, then we need to manully remove the trailing ";"
How to reproduce
Create a SQL task that has only one line
Run this task, then we can see a syntax error in som JDBC implementations (below is the HIVE case)
Anything else
No response
Version
dev
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: