[ 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)