[
https://issues.apache.org/jira/browse/AVRO-1402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13964337#comment-13964337
]
Tom White commented on AVRO-1402:
---------------------------------
I think the unique name limitation is a problem. At this point I think we
should revert this patch, establish some shared logical type definitions (for
decimal, date/time) that Hive can start using, then once they have become
established look at how to support them better through the Avro API as a part
of AVRO-1469.
We could also add them to the Avro spec, and also describe (and enforce in the
implementation) the schema resolution rules. Something like, both the reader’s
and writer’s schema's logicalTypes must match. Then for each logical type have
further rules, e.g. scale and precision must match for decimal.
> Support for DECIMAL 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
> Assignee: Tom White
> Priority: Minor
> Labels: Hive
> Fix For: 1.7.7
>
> Attachments: AVRO-1402.patch, AVRO-1402.patch, AVRO-1402.patch,
> AVRO-1402.patch, UnixEpochRecordMapping.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)