orc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "rip.nsk (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ORC-346) Probably bug in TimestampColumnReader
Date Wed, 18 Apr 2018 21:29:00 GMT
rip.nsk created ORC-346:

             Summary: Probably bug in TimestampColumnReader
                 Key: ORC-346
                 URL: https://issues.apache.org/jira/browse/ORC-346
             Project: ORC
          Issue Type: Bug
          Components: C++
            Reporter: rip.nsk

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

has the following code:


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

{color:#333333}which likely leads to read wrong seconds value for PRE_1970 dates{color}

This message was sent by Atlassian JIRA

View raw message