support serialization of BigDecimal values#27
Conversation
… is not supported yet
|
Sounds and looks good. Happy to merge. One question before I merge this: have I already asked for and gotten the CLA? If not, it's available from https://github.com/FasterXML/jackson/blob/master/contributor-agreement.pdf and we need to get it filled once, just to ensure we can distribute code that includes contributions. Or, rather, soothes corporate users who are worried about provenance of code within OSS projects (personally I would assume contributor does indeed mean to contribute code and knows ramifications but try explaining that a legal professional :) ). Apologies if you already sent one; we get quite a few of these. |
|
no problem. i just sent one off. |
|
Awesome thanks. |
support serialization of BigDecimal values
Avro doesn't have direct support for BigDecimal. Since jackson's schema generation considers them a double, translate values to a double prior to serialization.
Deserialization does not currently work since jackson wants to read the value as a string and use the BigDecimal(String) constructor.