Douglas Drinka created ORC-163:
----------------------------------

             Summary: Timestamp problems in java tools
                 Key: ORC-163
                 URL: https://issues.apache.org/jira/browse/ORC-163
             Project: ORC
          Issue Type: Bug
          Components: Java, tools
            Reporter: Douglas Drinka


I'll keep digging in the source as to what's happening here, but something is 
wrong with nanoseconds in java.

Take a timestamp `03/16/2017 12:03:31.4319875+00`.
That's 69552211 seconds and 431987500 nanoseconds, which is serialized as 
34559002.
C++ orc-contents prints it as ` "Timestamp": "2017-03-16 00:03:31.4319875"`
Java "orc-tools data" prints it as `"Timestamp":"2017-03-16 
00:03:31.024907704"` and then crashes after a few rows.
Additionally, "orc-tools meta" is giving me dates in the 1970s for the 
statistics.




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to