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

Bug in TimestampColumnReader (or Writer)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 1.5.0
    • C++
    • None

    Description

      void TimestampColumnReader::next(ColumnVectorBatch& rowBatch, uint64_t numValues, char *notNull)

      has the following code:

      c++\src\ColumnReader.cc:338

      int64_t writerTime = secsBuffer[i] + epochOffset;
      secsBuffer[i] = writerTimezone.convertToUTC(writerTime);
      if (secsBuffer[i] < 0 && nanoBuffer[i] != 0) {
      secsBuffer[i] -= 1;
      }

      which likely leads to read wrong seconds value for PRE_1970 dates

      Attachments

        Issue Links

          Activity

            People

              rip.nsk@gmail.com Renat Valiullin
              rip.nsk@gmail.com Renat Valiullin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: