Repository: hive Updated Branches: refs/heads/master 9c5c9409b -> 537c9cb9b
HIVE-20135: Fix incompatible change in TimestampColumnVector to default (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/537c9cb9 Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/537c9cb9 Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/537c9cb9 Branch: refs/heads/master Commit: 537c9cb9bf750289f1039fdaaf52f0a7310a88f2 Parents: 9c5c940 Author: Jesus Camacho Rodriguez <jcama...@apache.org> Authored: Fri Jul 13 20:42:34 2018 -0700 Committer: Jesus Camacho Rodriguez <jcama...@apache.org> Committed: Fri Jul 13 20:42:34 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/537c9cb9/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/537c9cb9/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;