Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Currently as I understand decimal logical types are encoded on top of bytes and fixed avro types. This makes them a bit "unnatural" in the json encoding...
I worked around a hack in my fork to naturally encode them into json decimals. A good starting point to look at is in: https://github.com/zolyfarkas/avro/blob/trunk/lang/java/avro/src/main/java/org/apache/avro/io/DecimalEncoder.java
My approach is a bit hacky, so I would be interested in suggestions to have this closer to something we can integrate into avro...
Attachments
Issue Links
- is related to
-
AVRO-1582 Json serialization of nullable fields and fields with default values improvement.
- Open