[ https://issues.apache.org/jira/browse/HIVE-6656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Prasanth J updated HIVE-6656: ----------------------------- Description: 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. was: 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 > 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)