github-actions[bot] commented on issue #17023: URL: https://github.com/apache/dolphinscheduler/issues/17023#issuecomment-2667481631
### 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='--Annotation test /*Annotation test*/ select 'a' as s,--Annotation test /*Annotation test*/ 1 as n --Comment Test /*Annotation test*/', 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: --Annotation test /*Annotation test*/ select 'a' as s,--Annotation test /*Annotation test*/ 1 as n --Comment Test /*Annotation test*/ , 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 : Test*/ select 'a' as s, test*/ 1 as n test*/ [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 : Test*/ select 'a' as s, test*/ 1 as n Test*/, sql parameters: {} [INFO] 2025-02-19 12:16:39.662 +0800 - main statement execute query, for sql: test*/ select 'a' as s, test*/ 1 as n test*/ [ERROR] 2025-02-19 12:16:39.669 +0800 - execute sql error: errCode = 2, detailMessage = mismatched input 'test' 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='--Annotation test /*Annotation test*/ select 'a' as s,--Annotation test /*Annotation test*/ 1 as n --Comment Test /*Annotation test*/', 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: --Annotation test /*Annotation test*/ select 'a' as s,--Annotation test /*Annotation test*/ 1 as n --Comment Test /*Annotation test*/ , 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 : --Comment Test select 'a' as s,--Annotation test 1 as n --Comment Test [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 : --Comment test select 'a' as s,--Annotation test 1 as n --Annotation test, sql parameters: {} [INFO] 2025-02-19 12:23:52.990 +0800 - main statement execute query, for sql: --Comment test select 'a' as s,--Annotation test 1 as n --Comment Test [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 ``` --Comment Test /*Annotation test*/ select 'a' as s,--Annotation test /*Annotation test*/ 1 as n --Comment Test /*Annotation test*/ ``` ### 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]
