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.  @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]
