You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Tom White (JIRA)" <ji...@apache.org> on 2014/04/02 16:07:20 UTC
[jira] [Updated] (AVRO-1402) Support for DECIMAL primitive type
[ https://issues.apache.org/jira/browse/AVRO-1402?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tom White updated AVRO-1402:
----------------------------
Attachment: AVRO-1402.patch
Here's a new patch with javadoc and a section in the spec about record mappings.
bq. should we add a constant or method that returns the decimal schema?
You can get the decimal schema with {{new DecimalRecordMapping().getSchema()}}, or {{new DecimalRecordMapping(5, 3).getSchema()}} - is that sufficient?
bq. as a test of this new abstraction, will it be easy to fix AVRO-739 using it?
Yes, it should be. I'll try it out and report back.
> 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, 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)