You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "wunan1210 (via GitHub)" <gi...@apache.org> on 2023/06/25 09:10:39 UTC
[GitHub] [seatunnel] wunan1210 opened a new issue, #4973: [Improve][Connector-V2][Mongodb]allow null value fields
wunan1210 opened a new issue, #4973:
URL: https://github.com/apache/seatunnel/issues/4973
### Search before asking
- [X] I had searched in the [feature](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22Feature%22) and found no similar feature requirement.
### Description
wrong happened when using mongodb source
```
-default-identifier]-SourceTask (1/1)] end with state FAILED and Exception: org.apache.seatunnel.connectors.seatunnel.mongodb.exception.MongodbConnectorException: ErrorCode:[COMMON-05], ErrorDescription:[Unsupported operation] - Unable to convert to <INT> from nullable value null
at org.apache.seatunnel.connectors.seatunnel.mongodb.serde.BsonToRowDataConverters$2.apply(BsonToRowDataConverters.java:98)
at org.apache.seatunnel.connectors.seatunnel.mongodb.serde.BsonToRowDataConverters$2.apply(BsonToRowDataConverters.java:89)
at org.apache.seatunnel.connectors.seatunnel.mongodb.serde.BsonToRowDataConverters$1.convert(BsonToRowDataConverters.java:77)
at org.apache.seatunnel.connectors.seatunnel.mongodb.serde.DocumentRowDataDeserializer.deserialize(DocumentRowDataDeserializer.java:74)
at org.apache.seatunnel.connectors.seatunnel.mongodb.serde.DocumentRowDataDeserializer.deserialize(DocumentRowDataDeserializer.java:32)
at org.apache.seatunnel.connectors.seatunnel.mongodb.source.reader.MongodbReader.pollNext(MongodbReader.java:107)
```
### Usage Scenario
add a mongodb config `allow-null`. if is true, output null when field reading is null instead of exception.
### Related issues
_No response_
### Are you willing to submit a 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: commits-unsubscribe@seatunnel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [seatunnel] github-actions[bot] commented on issue #4973: [Improve][Connector-V2][Mongodb]allow null value fields
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #4973:
URL: https://github.com/apache/seatunnel/issues/4973#issuecomment-1663128576
This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.
--
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-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [seatunnel] github-actions[bot] commented on issue #4973: [Improve][Connector-V2][Mongodb]allow null value fields
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #4973:
URL: https://github.com/apache/seatunnel/issues/4973#issuecomment-1650744900
This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.
--
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-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [seatunnel] github-actions[bot] closed issue #4973: [Improve][Connector-V2][Mongodb]allow null value fields
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #4973: [Improve][Connector-V2][Mongodb]allow null value fields
URL: https://github.com/apache/seatunnel/issues/4973
--
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-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org