prclin opened a new issue, #9470: URL: https://github.com/apache/seatunnel/issues/9470
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues. ### What happened when schema evolution triggered; and starrocks reviced AlterTableModifyColumnEvent or AlterTableModifyColumnEvent event, will call org.apache.seatunnel.connectors.seatunnel.starrocks.datatypes.StarRocksTypeConverter#reconvert to generate a defination, but when the seatunnel type was DECIMAL, it ation like below: ``` java builder.columnType(String.format("%s(%s,%s)", SR_DECIMAL, precision, scale)); builder.dataType(SR_DECIMALV3); builder.precision((long) precision); builder.scale(scale); ``` column type went wrong, it should be DECIMAL; this cause this: ``` log ErrorDescription:[Catalog initialize failed] - Failed connecting to jdbc:mysql://xxxx:9030/ via JDBC. at org.apache.seatunnel.engine.server.task.flow.SinkFlowLifeCycle.received(SinkFlowLifeCycle.java:302) at org.apache.seatunnel.engine.server.task.flow.SinkFlowLifeCycle.received(SinkFlowLifeCycle.java:70) at org.apache.seatunnel.engine.server.task.SeaTunnelTransformCollector.collect(SeaTunnelTransformCollector.java:39) at org.apache.seatunnel.engine.server.task.SeaTunnelTransformCollector.collect(SeaTunnelTransformCollector.java:27) at org.apache.seatunnel.engine.server.task.group.queue.IntermediateBlockingQueue.handleRecord(IntermediateBlockingQueue.java:75) at org.apache.seatunnel.engine.server.task.group.queue.IntermediateBlockingQueue.collect(IntermediateBlockingQueue.java:50) at org.apache.seatunnel.engine.server.task.flow.IntermediateQueueFlowLifeCycle.collect(IntermediateQueueFlowLifeCycle.java:51) at org.apache.seatunnel.engine.server.task.TransformSeaTunnelTask.collect(TransformSeaTunnelTask.java:72) at org.apache.seatunnel.engine.server.task.SeaTunnelTask.stateProcess(SeaTunnelTask.java:165) at org.apache.seatunnel.engine.server.task.TransformSeaTunnelTask.call(TransformSeaTunnelTask.java:77) at org.apache.seatunnel.engine.server.TaskExecutionService$BlockingWorker.run(TaskExecutionService.java:694) at org.apache.seatunnel.engine.server.TaskExecutionService$NamedTaskWrapper.run(TaskExecutionService.java:1023) at org.apache.seatunnel.api.tracing.MDCRunnable.run(MDCRunnable.java:43) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:750) Caused by: org.apache.seatunnel.api.table.catalog.exception.CatalogException: ErrorCode:[API-03], ErrorDescription:[Catalog initialize failed] - Failed connecting to jdbc:mysql://xxxx9030/ via JDBC. at org.apache.seatunnel.connectors.seatunnel.starrocks.sink.StarRocksSinkWriter.applySchemaChange(StarRocksSinkWriter.java:101) at org.apache.seatunnel.api.sink.multitablesink.MultiTableSinkWriter.applySchemaChange(MultiTableSinkWriter.java:163) at org.apache.seatunnel.engine.server.task.flow.SinkFlowLifeCycle.received(SinkFlowLifeCycle.java:258) ... 17 more Caused by: java.sql.SQLSyntaxErrorException: Getting syntax error at line 1, column 63. Detail message: No viable statement for input 'MODIFY COLUMN `xxxx` DECIMALV3'. at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:121) at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) at com.mysql.cj.jdbc.StatementImpl.executeInternal(StatementImpl.java:763) at com.mysql.cj.jdbc.StatementImpl.execute(StatementImpl.java:648) at org.apache.seatunnel.connectors.seatunnel.starrocks.util.SchemaUtils.applySchemaChange(SchemaUtils.java:199) at org.apache.seatunnel.connectors.seatunnel.starrocks.util.SchemaUtils.applySchemaChange(SchemaUtils.java:86) at org.apache.seatunnel.connectors.seatunnel.starrocks.util.SchemaUtils.applySchemaChange(SchemaUtils.java:63) at org.apache.seatunnel.connectors.seatunnel.starrocks.sink.StarRocksSinkWriter.applySchemaChange(StarRocksSinkWriter.java:98) ``` ### SeaTunnel Version 2.3.11 ### SeaTunnel Config ```conf no matter ``` ### Running Command ```shell no matter ``` ### Error Exception ```log in what happened ``` ### Zeta or Flink or Spark Version _No response_ ### Java or Scala Version _No response_ ### Screenshots _No response_ ### Are you willing to submit PR? - [x] 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]
