[
https://issues.apache.org/jira/browse/AVRO-1402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13945486#comment-13945486
]
Doug Cutting commented on AVRO-1402:
------------------------------------
CustomEncoding is close. It's does not have an isInstance() method, since it's
attached to a class via the @AvroEncode annotation. Mapping from class to
encoding is more efficient than via an isInstance() predicate, so we might
instead have a getInstanceClass() method. (This wouldn't let us use the same
mechanism for a different generated record implementation, but that's probably
okay.) GenericData could have a Map<Class,TypeMapping>. CustomEncoding might
implement TypeMapping and be implemented in terms of the facility added to
GenericData?
Have you considered using a lexicographic-friendly format?
http://www.zanopha.com/docs/elen.pdf
That could help if these are ever, e.g., used as MapReduce keys. Perhaps not a
priority.
> Support for DECIMAL primitive type
> ----------------------------------
>
> Key: AVRO-1402
> URL: https://issues.apache.org/jira/browse/AVRO-1402
> Project: Avro
> Issue Type: New Feature
> Affects Versions: 1.7.5
> Reporter: Mariano Dominguez
> Priority: Minor
> Labels: Hive
> Attachments: AVRO-1402.patch
>
>
> Currently, Avro does not seem to support a DECIMAL type or equivalent.
> http://avro.apache.org/docs/1.7.5/spec.html#schema_primitive
> Adding DECIMAL support would be particularly interesting when converting
> types from Avro to Hive, since DECIMAL is already a supported data type in
> Hive (0.11.0).
--
This message was sent by Atlassian JIRA
(v6.2#6252)