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 primitive type
Date Tue, 01 Apr 2014 16:25:16 GMT

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

Xuefu Zhang commented on AVRO-1402:

I can tell Hive and MySQL do store per-row scale values. E.g. https://github.com/apache/hive/blob/trunk/serde/src/java/org/apache/hadoop/hive/serde2/io/HiveDecimalWritable.java#L113.

This is true. This class is used as default LazySerde in Hive. However, other Serde is free
to choose its implementation.

I'm on board with storing scale per row. My only concern is that Hive ParquetSerde is choosing
not to store scale per row. Of course, this belongs to a different discussion.

> 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, AVRO-1402.patch, 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

View raw message