hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prasanth J (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-6656) Bug in ORC Timestamp reader returns wrong nanoseconds
Date Thu, 13 Mar 2014 19:57:46 GMT

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

Prasanth J updated HIVE-6656:
-----------------------------

    Attachment: HIVE-6656.1.patch

> Bug in ORC Timestamp reader returns wrong nanoseconds
> -----------------------------------------------------
>
>                 Key: HIVE-6656
>                 URL: https://issues.apache.org/jira/browse/HIVE-6656
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 0.13.0, 0.14.0
>            Reporter: Prasanth J
>            Assignee: Prasanth J
>              Labels: orcfile
>         Attachments: HIVE-6656.1.patch
>
>
> ORC timestamp writer stores the number of trailing zeros in 3 LSB bits. There is a bug
in parsing nanosecond logic that returns incorrect value.
> Input:
> 1999-01-01 00:00:00.999999999
> Output: 
> 1999-01-01 00:00:00.463129087
> The fix for this is parseNanos() should first right shift by 3 and then typecast to int.



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

Mime
View raw message