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
This is actually a tricky one. The root of this problem stems from the mismatch between the "Union variant" that gets serialized and the "Record value" that is expected by the deserializer.
Handling this for basic types (ints, floats, etc) isn't too hard and is already implemented, it is available with the flag --union-deser. However for potentially recursive types, such as a record, I haven't found a good solution yet as things can get pretty nasty to template/generate. In the code right now, when using --union-deserGenUnionVisitor::serde_visitor will be set to None, which, when templated, will be discarded.
Hi,
When working with a union of records, I am unable to deserialize record using apache_avro.
Example schema
Foo.avsc
:Expecting struct to be identical when serialized, and then deserialized:
The call to
from_value()
is responding with the following error:The text was updated successfully, but these errors were encountered: