avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xuefu Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-1402) Support for DECIMAL type
Date Mon, 14 Apr 2014 22:55:14 GMT

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

Xuefu Zhang commented on AVRO-1402:

Thanks for the clarification, [~rdblue]. That makes sense.

Speaking of enforcement, I am curious about how much Avro is able to validate against the
spec. For instance, the latest spec requires bigendian for encoding, but decimal data given
to Avro to store by the application is in terms of bytes, and I assume that Avro isn't able
to find out the endianness. Other area of rules, such as scale should be less than or equal
to precision, or scale should be positive, isn't present in the spec. I guess the bigger question
is whether or what validation will be enforced by Avro.Or it's completely up to the application,
and the spec is more of a guideline.

> 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-logical-type-spec-2.patch, AVRO-1402-logical-type-spec-3.patch,
AVRO-1402-logical-type-spec-4.patch, AVRO-1402-logical-type-spec.patch, 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

View raw message