hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Shelukhin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-6656) Bug in ORC Timestamp reader returns wrong nanoseconds
Date Tue, 18 Mar 2014 01:02:50 GMT

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

Sergey Shelukhin updated HIVE-6656:
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 0.13.0
           Status: Resolved  (was: Patch Available)

in trunk and 13. Didn't review, based on other +1

> 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
>             Fix For: 0.13.0
>
>         Attachments: HIVE-6656.1.patch, HIVE-6656.1.patch.txt
>
>
> 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