You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "mati865 (via GitHub)" <gi...@apache.org> on 2025/01/01 21:12:05 UTC
Re: [PR] AVRO-3646: serde for enum with mixed variants [avro]
mati865 commented on PR #1921:
URL: https://github.com/apache/avro/pull/1921#issuecomment-2567147816
Sorry for the late reply.
I had tried a few ideas, but you are right. Serde seems just not fit for this use case.
All my attempts eventually more or less resulted in rewriting serde, or parts of it.
The most reasonable solution seems to be what Borsh did by creating their own serialization framework: https://github.com/near/borsh-rs/tree/master/borsh-derive
Another solution is what `serde_avro_fast` does: creating a state with information how to (de)serialize the nodes and looking it up during that process.
They both require enormous implementation effort, though. I won't be able to dedicate so much time to it.
--
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: issues-unsubscribe@avro.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org