orc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wgtmac <...@git.apache.org>
Subject [GitHub] orc pull request #249: [ORC-341] Support time zone as a parameter for Java r...
Date Thu, 03 May 2018 03:39:14 GMT
Github user wgtmac commented on a diff in the pull request:

    https://github.com/apache/orc/pull/249#discussion_r185691194
  
    --- Diff: java/core/src/java/org/apache/orc/impl/TreeReaderFactory.java ---
    @@ -990,6 +1007,10 @@ public void nextVector(ColumnVector previousVector,
           TimestampColumnVector result = (TimestampColumnVector) previousVector;
           super.nextVector(previousVector, isNull, batchSize);
     
    +      if (context.isUseUTCTimestamp()) {
    +        result.setIsUTC(true);
    --- End diff --
    
    result.setIsUTC(context.isUseUTCTimestamp());
    
    Just in case result is in UTC but context.isUseUTCTimestamp() is false.


---

Mime
View raw message