dasch / avro_turf

A library that makes it easier to use the Avro serialization format from Ruby.
MIT License
167 stars 80 forks source link

Logical types and as_avro #176

Closed ananthakumaran closed 2 years ago

ananthakumaran commented 2 years ago

I tried to use the logical type date, but avro gem raised an exception because it was receiving string instead of date. After debugging it turns out, there is an as_avro implementation that turns the date into string. Is there any way to disable as_avro? so we can just depend on the avro gem to handle the logical type

dasch commented 2 years ago

Probably a PR that changes the implementation to return whatever's necessary for Avro?

dasch commented 2 years ago

Fixed by #177