Repository: hive
Updated Branches:
  refs/heads/branch-3.1 411ce3504 -> 7e46905c6


HIVE-20135: Fix incompatible change in TimestampColumnVector to default to UTC 
(Jesus Camacho Rodriguez, reviewed by Owen O'Malley)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/7e46905c
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/7e46905c
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/7e46905c

Branch: refs/heads/branch-3.1
Commit: 7e46905c6571ef3e8bec1f17811037baa55aacc9
Parents: 411ce35
Author: Jesus Camacho Rodriguez <jcama...@apache.org>
Authored: Wed Jul 11 07:58:53 2018 -0700
Committer: Jesus Camacho Rodriguez <jcama...@apache.org>
Committed: Wed Jul 11 09:08:12 2018 -0700

----------------------------------------------------------------------
 .../apache/hadoop/hive/ql/exec/vector/TimestampColumnVector.java   | 2 +-
 .../apache/hadoop/hive/ql/exec/vector/TestStructColumnVector.java  | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/7e46905c/storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/TimestampColumnVector.java
----------------------------------------------------------------------
diff --git 
a/storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/TimestampColumnVector.java
 
b/storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/TimestampColumnVector.java
index f11a319..3b5f3ba 100644
--- 
a/storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/TimestampColumnVector.java
+++ 
b/storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/TimestampColumnVector.java
@@ -81,7 +81,7 @@ public class TimestampColumnVector extends ColumnVector {
 
     scratchWritable = null;     // Allocated by caller.
 
-    isUTC = true;
+    isUTC = false;
   }
 
   /**

http://git-wip-us.apache.org/repos/asf/hive/blob/7e46905c/storage-api/src/test/org/apache/hadoop/hive/ql/exec/vector/TestStructColumnVector.java
----------------------------------------------------------------------
diff --git 
a/storage-api/src/test/org/apache/hadoop/hive/ql/exec/vector/TestStructColumnVector.java
 
b/storage-api/src/test/org/apache/hadoop/hive/ql/exec/vector/TestStructColumnVector.java
index fbd0c06..d1a546f 100644
--- 
a/storage-api/src/test/org/apache/hadoop/hive/ql/exec/vector/TestStructColumnVector.java
+++ 
b/storage-api/src/test/org/apache/hadoop/hive/ql/exec/vector/TestStructColumnVector.java
@@ -105,6 +105,7 @@ public class TestStructColumnVector {
     VectorizedRowBatch batch = new VectorizedRowBatch(2);
     LongColumnVector x1 = new LongColumnVector();
     TimestampColumnVector x2 = new TimestampColumnVector();
+    x2.setIsUTC(true);
     StructColumnVector x = new StructColumnVector(1024, x1, x2);
     BytesColumnVector y = new BytesColumnVector();
     batch.cols[0] = x;

Reply via email to