-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add configuration item to control how connector deals with Null items #438
Comments
what is the outcome you expect when using nulls in a struct? |
Hi @ryancrawcour , I was expecting a null to be present in the document in the Cosmos DB which is the natural 1-1 mapping between the Avro Record and the Json Document. But a boolean flag in the connector that allow to change the way null are processing e.g. hideNullFields could be a nice way to cover more people's scenarios. Thanks |
Thanks @Strabox. I think adding a flag in config would be a nice future feature. For now, I say we should go with your solution and leave this open as a feature request for future. |
changed from bug to feature request and edited title to track feature request to put null behaviour under a config flag. |
Description
Nullpointer exception in the connector when writing data into Cosmos from an Avro (with confluent Schema Registry) topic.
Expected Behavior
A clear error of what is happening when writing the data.
Additional Context
I was debugging a little bit more, and problem resumes to the fact that we have an Avro Schema with a field which is a struct/record in terms of type, if this struct field is populated with null instead of the struct/record than the NullPointerException is raised.
This is supposed to happen? To me having nulls in struct/record fields is a common practice and I faced it a lot when processing CDC events from CDC tools like IBM WebShphere replicator and Oracle's Golden Gate.
Thanks!
The text was updated successfully, but these errors were encountered: