DannyBoyk commented on PR #492:
URL: https://github.com/apache/avro/pull/492#issuecomment-1858138431
@mhowlett - I'm trying to update to Apache.Avro 1.11.3 in our C# project and
am serialization issues with the logical type changes. A record that uses date
now has its C# generated class with a DateTime instead of an int. When I go to
serialize it, I get the error `Avro.AvroException: 'System.Int32 required to
write against Int schema but found System.DateTime'`.
I feel like I might be missing something, but I'm not sure what. The
generated schema has:
`{ "type":"int", "logicalType":"date"}`
So, I assumed the serialization code would handle the conversion itself.
Any thoughts or help is appreciated.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]