hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gunther Hagleitner (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-2693) Add DECIMAL data type
Date Wed, 19 Dec 2012 09:41:15 GMT

     [ https://issues.apache.org/jira/browse/HIVE-2693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gunther Hagleitner updated HIVE-2693:
-------------------------------------

    Attachment: HIVE-2693-14.patch

- Changed +/-2 in serialization of sign to +/-1. Can't change it to just use the output of
compareTo, because the negative value will be sorted incorrectly.

- Added BigDecimal to TestStatsSerde, TestLazyBinarySerde and (most importantly) to TestSortableBinarySerde.
This does roundtrip serialization/deserialization of a large struct and should cover the requested
testing.

- Fixed bug found with TestSortableBinarySerde. Good call on the additional testing. Nasty
bug.

- Changed BigDecimalWritable.equals. It uses compareTo == 0 now. With big decimals equals
is not compatible with compareTo.

- Added BigDecimal as the java object for Decimal in PrimitiveTypeEntry to make the reflection
based objectinspector work.
                
> Add DECIMAL data type
> ---------------------
>
>                 Key: HIVE-2693
>                 URL: https://issues.apache.org/jira/browse/HIVE-2693
>             Project: Hive
>          Issue Type: New Feature
>          Components: Query Processor, Types
>    Affects Versions: 0.10.0
>            Reporter: Carl Steinbach
>            Assignee: Prasad Mujumdar
>         Attachments: 2693_7.patch, 2693_8.patch, 2693_fix_all_tests1.patch, HIVE-2693-10.patch,
HIVE-2693-11.patch, HIVE-2693-12-SortableSerDe.patch, HIVE-2693-13.patch, HIVE-2693-14.patch,
HIVE-2693-1.patch.txt, HIVE-2693-all.patch, HIVE-2693-fix.patch, HIVE-2693.patch, HIVE-2693-take3.patch,
HIVE-2693-take4.patch
>
>
> Add support for the DECIMAL data type. HIVE-2272 (TIMESTAMP) provides a nice template
for how to do this.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message