Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-163

Timestamp problems in java tools

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • documentation
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ddrinka Douglas Drinka
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: