jalousiex opened a new issue, #17023: URL: https://github.com/apache/dolphinscheduler/issues/17023
### 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 **this is doris data source, doris driver** ``` [INFO] 2025-02-19 12:16:39.612 +0800 - ********************************* Execute task instance ************************************* [INFO] 2025-02-19 12:16:39.613 +0800 - *********************************************************************************************** [INFO] 2025-02-19 12:16:39.613 +0800 - Full sql parameters: SqlParameters{type='DORIS', datasource=36, sql='--注释测试 /*注释测试*/ select 'a' as s,--注释测试 /*注释测试*/ 1 as n --注释测试 /*注释测试*/', sqlType=0, sendEmail=null, displayRows=10, limit=0, udfs='null', showType='null', connParams='null', groupId='0', title='null', preStatements=[], postStatements=[]} [INFO] 2025-02-19 12:16:39.613 +0800 - sql type : DORIS, datasource : 36, sql : --注释测试 /*注释测试*/ select 'a' as s,--注释测试 /*注释测试*/ 1 as n --注释测试 /*注释测试*/ , localParams : [],udfs : null,showType : null,connParams : null,varPool : [] ,query max result limit 0 [INFO] 2025-02-19 12:16:39.615 +0800 - after replace sql , preparing : 测试*/ select 'a' as s, 测试*/ 1 as n 测试*/ [INFO] 2025-02-19 12:16:39.616 +0800 - Sql Params are replaced sql , parameters: [INFO] 2025-02-19 12:16:39.616 +0800 - can't find udf function resource [WARN] 2025-02-19 12:16:39.617 +0800 - Connect strings must start with jdbc:snowflake:// [INFO] 2025-02-19 12:16:39.662 +0800 - prepare statement replace sql : 测试*/ select 'a' as s, 测试*/ 1 as n 测试*/, sql parameters : {} [INFO] 2025-02-19 12:16:39.662 +0800 - main statement execute query, for sql: 测试*/ select 'a' as s, 测试*/ 1 as n 测试*/ [ERROR] 2025-02-19 12:16:39.669 +0800 - execute sql error: errCode = 2, detailMessage = mismatched input '测试' expecting {<EOF>, ';', '(', 'ADMIN', 'ALTER', 'ANALYZE', 'BACKUP', 'BEGIN', 'BUILD', 'CALL', 'CANCEL', 'CLEAN', 'COLUMNS', 'COMMIT', 'COPY', 'CREATE', 'DELETE', 'DESC', 'DESCRIBE', 'DROP', 'EXPLAIN', 'EXPORT', 'GRANT', 'HELP', 'INSERT', 'INSTALL', 'KILL', 'LOAD', 'LOCK', 'ORDER', 'PAUSE', 'PLAN', 'PRECEDING', 'RECOVER', 'REFRESH', 'REPLACE', 'RESTORE', 'RESUME', 'REVOKE', 'ROLLBACK', 'SELECT', 'SET', 'SHOW', 'START', 'STOP', 'SWITCH', 'SYNC', 'TRUNCATE', 'UNINSTALL', 'UNLOCK', 'UNSET', 'UPDATE', 'USE', 'VALUES', 'WARM', 'WHERE', 'WITH'}(line 1, pos 0) [ERROR] 2025-02-19 12:16:39.670 +0800 - sql task error ``` **this is doris data source, doris driver** ``` [INFO] 2025-02-19 12:23:52.946 +0800 - ********************************* Execute task instance ************************************* [INFO] 2025-02-19 12:23:52.947 +0800 - *********************************************************************************************** [INFO] 2025-02-19 12:23:52.947 +0800 - Full sql parameters: SqlParameters{type='MYSQL', datasource=7, sql='--注释测试 /*注释测试*/ select 'a' as s,--注释测试 /*注释测试*/ 1 as n --注释测试 /*注释测试*/', sqlType=0, sendEmail=null, displayRows=10, limit=0, udfs='null', showType='null', connParams='null', groupId='0', title='null', preStatements=[], postStatements=[]} [INFO] 2025-02-19 12:23:52.950 +0800 - sql type : MYSQL, datasource : 7, sql : --注释测试 /*注释测试*/ select 'a' as s,--注释测试 /*注释测试*/ 1 as n --注释测试 /*注释测试*/ , localParams : [],udfs : null,showType : null,connParams : null,varPool : null ,query max result limit 0 [INFO] 2025-02-19 12:23:52.951 +0800 - after replace sql , preparing : --注释测试 select 'a' as s,--注释测试 1 as n --注释测试 [INFO] 2025-02-19 12:23:52.951 +0800 - Sql Params are replaced sql , parameters: [INFO] 2025-02-19 12:23:52.951 +0800 - can't find udf function resource [WARN] 2025-02-19 12:23:52.952 +0800 - Connect strings must start with jdbc:snowflake:// [INFO] 2025-02-19 12:23:52.990 +0800 - prepare statement replace sql : --注释测试 select 'a' as s,--注释测试 1 as n --注释测试, sql parameters : {} [INFO] 2025-02-19 12:23:52.990 +0800 - main statement execute query, for sql: --注释测试 select 'a' as s,--注释测试 1 as n --注释测试 [INFO] 2025-02-19 12:23:53.054 +0800 - display sql result 1 rows as follows: [INFO] 2025-02-19 12:23:53.055 +0800 - row 1 : {"s":"a","n":1} ``` ### What you expected to happen comment replaced correct dolphin scheduler 3.2.2 ### How to reproduce sql type job, doris driver data source ``` --注释测试 /*注释测试*/ select 'a' as s,--注释测试 /*注释测试*/ 1 as n --注释测试 /*注释测试*/ ``` ### Anything else _No response_ ### Version 3.2.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]
