You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is not possible to read an object with a Table as a field from Kafka since behind the scenes, spring framework uses Jackson to deserialize objects, and at the moment there are a lot of Guava Data Types that are not handled by Jackson
It does seem to me that the proper path forward is for Jackson to implement a deserializer for Guava's ImmutableTable rather than to introduce a public constructor.
Agreed: I don't think there is anything Guava should need to add (besides, any new addition would be for latest Guava and Jackson module is designed to work with a wide range of Guava versions so cannot rely on latest).
Someone just needs to take time to write a Jackson JsonDeserializer for Table type.
1. What are you trying to do?
It is not possible to read an object with a Table as a field from Kafka since behind the scenes, spring framework uses Jackson to deserialize objects, and at the moment there are a lot of Guava Data Types that are not handled by Jackson
https://github.com/FasterXML/jackson-datatypes-collections/blob/2.17/guava/src/main/java/com/fasterxml/jackson/datatype/guava/GuavaDeserializers.java
2. What's the best code you can write to accomplish that without the new feature?
I have switched from Guava Table to Map<C, Map<R, V>>
3. What would that same code look like if we added your feature?
probably something like:
public HashBasedTable(Map<R, Map<C, V>> table);
(Optional) What would the method signatures for your feature look like?
No response
Concrete Use Cases
I need to deserialize an object that has a Table as a field.
The serialization is already implemented.
Packages
com.google.common.collect
Checklist
I agree to follow the code of conduct.
I have read and understood the contribution guidelines.
I have read and understood Guava's philosophy, and I strongly believe that this proposal aligns with it.
I have visited the idea graveyard, and did not see anything similar to this idea.
The text was updated successfully, but these errors were encountered: