hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Damien Carol (JIRA)" <>
Subject [jira] [Commented] (HIVE-9385) Sum a Double using an ORC table
Date Fri, 16 Jan 2015 08:30:34 GMT


Damien Carol commented on HIVE-9385:

[~nimartin] Could you provide SHOW CREATE TABLE <sales> and the query you use to store
sales amount.
Another thing, if you must have precise value for amount, you should use DECIMAL

> Sum a Double using an ORC table
> -------------------------------
>                 Key: HIVE-9385
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.13.1
>         Environment: HDP 2.x, Hive
>            Reporter: Nick Martin
>            Priority: Minor
> I’m storing a sales amount column as a double in an ORC table and when I do:
> {code:sql}
> select sum(x) from sometable
> {code}
> I get a value like {{4.79165141174808E9}}
> A visual inspection of the column values reveals no glaring anomalies…all looks pretty
> If I do the same thing in a textfile table I get a perfectly fine aggregation of the
double field.

This message was sent by Atlassian JIRA

View raw message