avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Cutting (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-1402) Support for DECIMAL type
Date Thu, 17 Apr 2014 14:27:19 GMT

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

Doug Cutting commented on AVRO-1402:
------------------------------------

Ryanb: I'd prefer that Decimal is not a nested subclass of LogicalType. That way the pattern
is that new logical types can be added by user code, without creating a new Avro release.
 Also, Schema.java needs not be altered.  A LogicalType can be a factory for and tools that
manipulate Schema instances.  The existing schema property mechanism can be used to implement
these.  If another implementation adds a logical type that Java has not yet implemented then
no exceptions need be caught, since logical types are an optional layer atop schemas.

Jarek, you seem to feel that other projects (e.g., Hive or Impala) will better be able to
make progress once a logical type specification is committed.  If that's the case then perhaps
we should commit just the specification change now and let implementations and uses proceed
in parallel.

> 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-5.patch, AVRO-1402-logical-type-spec-6.patch,
AVRO-1402-logical-type-spec-7.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
(v6.2#6252)

Mime
View raw message