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

   ### 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
   
   {
       "price": NumberDecimal("822")
   }
   
   ### SeaTunnel Version
   
   2.3.4
   
   ### SeaTunnel Config
   
   ```conf
   env {
     parallelism = 1
     job.mode = "STREAMING"
     checkpoint.interval = 5000
   }
   
   source {
     MongoDB-CDC {
       hosts = "172.16.0.11:27017"
       database = ["pms-v3"]
       collection = ["pms-v3.demand_item_row"]
       username = mongouser
       password = "4wveEUgd3Ty8ovLo"
       schema = {
         fields {
           "_id" : string,
           "ras" : string,
           "price": Decimal128,
           "created" : Timestamp
         }
       }
     }
   }
   
   sink {
     Console {
       parallelism = 1
     }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   docker
   ```
   
   
   ### Error Exception
   
   ```log
   row-streaming  | 2024-04-16 06:39:22,208 ERROR [o.a.s.c.s.SeaTunnel          
 ] [main] - 
   row-streaming  | 
===============================================================================
   row-streaming  | 
   row-streaming  | 
   row-streaming  | 
   row-streaming  | Exception in thread "main" 
org.apache.seatunnel.core.starter.exception.CommandExecuteException: SeaTunnel 
job executed failed
   row-streaming  |        at 
org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:199)
   row-streaming  |        at 
org.apache.seatunnel.core.starter.SeaTunnel.run(SeaTunnel.java:40)
   row-streaming  |        at 
org.apache.seatunnel.core.starter.seatunnel.SeaTunnelClient.main(SeaTunnelClient.java:34)
   row-streaming  | Caused by: 
org.apache.seatunnel.api.table.factory.FactoryException: ErrorCode:[API-06], 
ErrorDescription:[Factory initialize failed] - Unable to create a source for 
identifier 'MongoDB-CDC'.
   row-streaming  |        at 
org.apache.seatunnel.api.table.factory.FactoryUtil.createAndPrepareSource(FactoryUtil.java:100)
   row-streaming  |        at 
org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parseSource(MultipleTableJobConfigParser.java:320)
   row-streaming  |        at 
org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parse(MultipleTableJobConfigParser.java:181)
   row-streaming  |        at 
org.apache.seatunnel.engine.client.job.ClientJobExecutionEnvironment.getLogicalDag(ClientJobExecutionEnvironment.java:88)
   row-streaming  |        at 
org.apache.seatunnel.engine.client.job.ClientJobExecutionEnvironment.execute(ClientJobExecutionEnvironment.java:161)
   row-streaming  |        at 
org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:146)
   row-streaming  |        ... 2 more
   row-streaming  | Caused by: java.lang.RuntimeException: Decimal type should 
assign precision and scale information
   row-streaming  |        at 
org.apache.seatunnel.api.table.catalog.SeaTunnelDataTypeConvertorUtil.parseDecimalType(SeaTunnelDataTypeConvertorUtil.java:228)
   row-streaming  |        at 
org.apache.seatunnel.api.table.catalog.SeaTunnelDataTypeConvertorUtil.parseComplexDataType(SeaTunnelDataTypeConvertorUtil.java:123)
   row-streaming  |        at 
org.apache.seatunnel.api.table.catalog.SeaTunnelDataTypeConvertorUtil.deserializeSeaTunnelDataType(SeaTunnelDataTypeConvertorUtil.java:52)
   row-streaming  |        at 
org.apache.seatunnel.api.table.catalog.schema.ReadonlyConfigParser$FieldParser.parse(ReadonlyConfigParser.java:97)
   row-streaming  |        at 
org.apache.seatunnel.api.table.catalog.schema.ReadonlyConfigParser$FieldParser.parse(ReadonlyConfigParser.java:84)
   row-streaming  |        at 
org.apache.seatunnel.api.table.catalog.schema.ReadonlyConfigParser.parse(ReadonlyConfigParser.java:64)
   row-streaming  |        at 
org.apache.seatunnel.api.table.catalog.CatalogTableUtil.buildWithConfig(CatalogTableUtil.java:198)
   row-streaming  |        at 
org.apache.seatunnel.api.table.catalog.CatalogTableUtil.getCatalogTables(CatalogTableUtil.java:108)
   row-streaming  |        at 
org.apache.seatunnel.api.table.catalog.CatalogTableUtil.getCatalogTables(CatalogTableUtil.java:96)
   row-streaming  |        at 
org.apache.seatunnel.connectors.seatunnel.cdc.mongodb.MongodbIncrementalSourceFactory.lambda$createSource$0(MongodbIncrementalSourceFactory.java:77)
   row-streaming  |        at 
org.apache.seatunnel.api.table.factory.FactoryUtil.createAndPrepareSource(FactoryUtil.java:112)
   row-streaming  |        at 
org.apache.seatunnel.api.table.factory.FactoryUtil.createAndPrepareSource(FactoryUtil.java:73)
   row-streaming  |        ... 7 more
   ```
   
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   _No response_
   
   ### 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