TPSHION opened a new issue, #3120: URL: https://github.com/apache/flink-cdc/issues/3120
异常信息: 2024-03-09 20:00:20,014 ERROR com.starrocks.connector.flink.catalog.StarRocksCatalog [] - Failed to create table secret.secret, sql: CREATE TABLE IF NOT EXISTS `secret`.`st_user_gift` ( `id` DECIMAL(20, 0) NOT NULL, `giftId` VARCHAR(150) NOT NULL, `uid` DECIMAL(20, 0) NOT NULL, `num` INT NOT NULL, `remain` INT NOT NULL, `getSource` VARCHAR(300) NOT NULL, `createTime` DATETIME NOT NULL ) PRIMARY KEY (`id`) DISTRIBUTED BY HASH (`id`) PROPERTIES ( "fast_schema_evolution" = "true" ); java.sql.SQLSyntaxErrorException: Getting analyzing error. Detail message: primary key column[id] type not supported: decimal(20, 0). at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120) ~[?:?] at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) ~[?:?] at com.mysql.cj.jdbc.StatementImpl.executeUpdateInternal(StatementImpl.java:1335) ~[?:?] at com.mysql.cj.jdbc.StatementImpl.executeLargeUpdate(StatementImpl.java:2084) ~[?:?] at com.mysql.cj.jdbc.StatementImpl.executeUpdate(StatementImpl.java:1246) ~[?:?] at com.starrocks.connector.flink.catalog.StarRocksCatalog.executeUpdateStatement(StarRocksCatalog.java:470) ~[?:?] at com.starrocks.connector.flink.catalog.StarRocksCatalog.createTable(StarRocksCatalog.java:250) ~[?:?] at com.ververica.cdc.connectors.starrocks.sink.StarRocksMetadataApplier.applyCreateTable(StarRocksMetadataApplier.java:97) ~[?:?] at com.ververica.cdc.connectors.starrocks.sink.StarRocksMetadataApplier.applySchemaChange(StarRocksMetadataApplier.java:71) ~[?:?] at com.ververica.cdc.runtime.operators.schema.coordinator.SchemaRegistryRequestHandler.applySchemaChange(SchemaRegistryRequestHandler.java:82) ~[?:?] -- 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: commits-unsubscr...@flink.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org