[ 
https://issues.apache.org/jira/browse/AVRO-1894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15410949#comment-15410949
 ] 

Yibing Shi commented on AVRO-1894:
----------------------------------

How about add all the default conversions into {{SpecificData}} but not 
{{GenericData}}? We have applied a bunch of default conversions to 
{{SpecificRecord}} in {{SpecificCompiler}}. Does it make sense the apply the 
same set of conversions to {{SpecificData}}?
As for {{GenericData}}, adding a builder class is a good idea. We can cache the 
created {{GenericData}} instances to reduce memory usage (reuse the same 
instance if a same bunch of conversions are passed in).

> 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
>          Components: java, logical types
>    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)

Reply via email to