songwenyong commented on issue #15760:
URL: 
https://github.com/apache/dolphinscheduler/issues/15760#issuecomment-2029497435

   The bug occurs in the `DataSourceProcessor.splitAndRemoveComment` method, 
which calls the Alibaba Druid's `SQLParserUtils.splitAndRemoveComment` method. 
When processing SQL, there's an issue with the Lexer parser configuration, as 
follows:
   `lexer.config(SQLParserFeature.SkipComments, false);`
   `lexer.config(SQLParserFeature.KeepComments, true);`
   
   It is recommended to modify the `DataSourceProcessor.splitAndRemoveComment` 
method to make two calls. First, call `SQLParserUtils.removeComment`, and then 
call `SQLParserUtils.split`. We have already fixed this in our company's 
branch, and I can submit a PR if possible.
   
   
![image](https://github.com/apache/dolphinscheduler/assets/119404633/d7a447e5-0dc3-42cf-a412-2911f1521b8f)
   
   
   @davidzollo @SbloodyS 


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