Level1Accelerator opened a new issue, #10924:
URL: https://github.com/apache/seatunnel/issues/10924

   ### 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
   
   The following error occurs when Doris automatically creates tables
   [ERROR] Caused by: 
org.apache.seatunnel.api.table.catalog.exception.CatalogException: 
ErrorCode:[API-03], ErrorDescription:[Catalog initialize failed] - create table 
statement execute failed[ERROR]     at 
org.apache.seatunnel.connectors.doris.catalog.DorisCatalog.createTable(DorisCatalog.java:420)[ERROR]
     at 
org.apache.seatunnel.api.sink.DefaultSaveModeHandler.createTable(DefaultSaveModeHandler.java:213)[ERROR]
     at 
org.apache.seatunnel.api.sink.DefaultSaveModeHandler.createSchemaWhenNotExist(DefaultSaveModeHandler.java:139)[ERROR]
     at 
org.apache.seatunnel.api.sink.DefaultSaveModeHandler.handleSchemaSaveMode(DefaultSaveModeHandler.java:88)[ERROR]
     at 
org.apache.seatunnel.api.sink.SaveModeHandler.handleSaveMode(SaveModeHandler.java:42)[ERROR]
     at 
org.apache.seatunnel.api.sink.SaveModeExecuteWrapper.execute(SaveModeExecuteWrapper.java:36)[ERROR]
     at 
org.apache.seatunnel.engine.server.master.JobMaster.handleSaveMode(JobMaster.java:571)[ERROR]
     ... 21 more[ERROR] C
 aused by: java.sql.SQLException: errCode = 2, detailMessage = Scale of decimal 
must between 0 and 9. Scale was set to: 10.[ERROR]     at 
com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129)[ERROR]
     at 
com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)[ERROR]
     at 
com.mysql.cj.jdbc.StatementImpl.executeInternal(StatementImpl.java:763)[ERROR]  
   at com.mysql.cj.jdbc.StatementImpl.execute(StatementImpl.java:648)[ERROR]    
 at 
org.apache.seatunnel.connectors.doris.catalog.DorisCatalog.createTable(DorisCatalog.java:418)[ERROR]
     ... 27 more[ERROR]     at 
java.util.concurrent.FutureTask.run(FutureTask.java:266)[ERROR]     at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   
   ### SeaTunnel Version
   
   2.3.12 and 2.3.13
   
   ### SeaTunnel Config
   
   ```conf
   Normal configuration
   ```
   
   ### Running Command
   
   ```shell
   ./bin/seatunnel --config
   ```
   
   ### Error Exception
   
   ```log
   [ERROR] Caused by: java.sql.SQLException: errCode = 2, detailMessage = Scale 
of decimal must between 0 and 9. Scale was set to: 10.
   ```
   
   ### Zeta or Flink or Spark Version
   
   zeta
   
   ### Java or Scala Version
   
   1.8
   
   ### Screenshots
   
   <!-- Failed to upload "image.png" -->
   
   <!-- Failed to upload "image.png" -->
   
   <!-- Failed to upload "image.png" -->
   
   ### 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]

Reply via email to