-
-
Notifications
You must be signed in to change notification settings - Fork 141
Unable to Serialize Guava Multimap in Avro #103
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
Comments
Thank you for reporting this. I suspect problem comes from Guava module declaring content model that differs from actual serialization: that is, it claims to serialize as simple |
Doh! At this thought serializer implemented discovery properly, but just realized that code SHOULD differ from standard |
Reproducing the issue can be done easily enough (although due to deps, need to stash in |
Done -- this will be fixed via FasterXML/jackson-datatypes-collections#19 which will be included in |
Using jackson version
2.9.0
One of our classes utilizes Guava's Multimap. It is a
Multimap<String, String>
. When attempting to write our object in Avro, the following exception is thrown:This is how we are are setting up the writer:
And the generated Avro schema looks something like:
And the class would look something like:
It would appear that these two libraries (jackson-dataformat-avro & jackson-datatype-guava), or more specifically,
AvroSchemaGenerator
&GuavaModule
, don't play nice together. Unless, I'm totally messing things up.The text was updated successfully, but these errors were encountered: