You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Sergey Shelukhin (JIRA)" <ji...@apache.org> on 2014/03/13 17:17:42 UTC

[jira] [Updated] (HIVE-6641) optimized HashMap keys won't work correctly with decimals

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

Sergey Shelukhin updated HIVE-6641:
-----------------------------------

    Attachment: HIVE-6641.patch

Disable the key usage for decimal, add test. Alternativelty, since the keys are only used for equality compares in binary form, and never deserialized, we could discard trailing zeroes (we can disregard precision/scale). We can consider it later...

> optimized HashMap keys won't work correctly with decimals
> ---------------------------------------------------------
>
>                 Key: HIVE-6641
>                 URL: https://issues.apache.org/jira/browse/HIVE-6641
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Sergey Shelukhin
>            Assignee: Sergey Shelukhin
>         Attachments: HIVE-6641.patch
>
>
> Decimal values with can be equal while having different byte representations (different precision/scale), so comparing bytes is not enough. For a quick fix, we can disable this for decimals



--
This message was sent by Atlassian JIRA
(v6.2#6252)