Carl-Zhou-CN commented on issue #6714: URL: https://github.com/apache/seatunnel/issues/6714#issuecomment-2078485202
> > > @bulolo how about set price type to `decimal(30, 8)` refer this > > > https://github.com/apache/seatunnel/blob/79bb70101a5056de7cd44197ce6a613bf5ad3a01/docs/en/connector-v2/source/FakeSource.md?plain=1#L165 > > > > > > ``` > > source { > > MongoDB-CDC { > > hosts = "mongo0:27017" > > database = ["inventory"] > > collection = ["inventory.products"] > > username = stuser > > password = stpw > > schema = { > > fields { > > "_id" : string, > > "name" : string, > > "description" : string, > > "weight" : decimal(30, 8), ------not support > > } > > } > > } > > } > > ``` > > > > > > > > > > > > > > > > > > > > > > > > mongocdc did not support it > > `"decimal(30, 8)"`, the decimal type must be enclosed in `"`. [how-to-declare-type](https://seatunnel.apache.org/docs/2.3.4/concept/schema-feature#how-to-declare-type-supported) Add a use case https://github.com/apache/seatunnel/blob/dev/seatunnel-e2e/seatunnel-connector-v2-e2e/connector-mongodb-e2e/src/test/resources/mongodb_source_to_assert.conf -- 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]
