[
https://issues.apache.org/jira/browse/AVRO-1894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15408395#comment-15408395
]
Ryan Blue commented on AVRO-1894:
---------------------------------
I don't think that, in general, adding conversions by default is a good idea.
There's currently no method to remove a conversion, and no guarantee that
people wouldn't use different ones. For example, the date/time conversions use
Joda types but you might want to use different classes for Java 8. There's also
some cost to conversion lookups. Is there something we could do to make this
more obvious instead of adding default conversions? What about better errors
when the wrong types are used?
> GenericData does not add Logical Type conversions by default
> ------------------------------------------------------------
>
> Key: AVRO-1894
> URL: https://issues.apache.org/jira/browse/AVRO-1894
> Project: Avro
> Issue Type: Improvement
> Affects Versions: 1.8.1
> Reporter: Taras Bobrovytsky
>
> In order to support Decimal fields, the following line needs to be added:
> {code}
> new GenericData().addLogicalTypeConversion(new
> Conversions.DecimalConversion());
> {code}
> It would be more convenient if logical type conversions were added by default.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)