You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by jc...@apache.org on 2018/06/24 15:59:20 UTC
hive git commit: HIVE-12192: Hive should carry out timestamp
computations in UTC (Jesus Camacho Rodriguez,
reviewed by Ashutosh Chauhan) (addendum)
Repository: hive
Updated Branches:
refs/heads/branch-3 a571bc803 -> e4158a873
HIVE-12192: Hive should carry out timestamp computations in UTC (Jesus Camacho Rodriguez, reviewed by Ashutosh Chauhan) (addendum)
Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/e4158a87
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/e4158a87
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/e4158a87
Branch: refs/heads/branch-3
Commit: e4158a8732b3ba394626e90d9a42e19f7e471fce
Parents: a571bc8
Author: Jesus Camacho Rodriguez <jc...@apache.org>
Authored: Sun Jun 24 08:59:06 2018 -0700
Committer: Jesus Camacho Rodriguez <jc...@apache.org>
Committed: Sun Jun 24 08:59:06 2018 -0700
----------------------------------------------------------------------
.../apache/hadoop/hive/accumulo/mr/TestHiveAccumuloTypes.java | 4 ++--
ql/src/test/queries/clientnegative/date_literal3.q | 2 --
2 files changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hive/blob/e4158a87/accumulo-handler/src/test/org/apache/hadoop/hive/accumulo/mr/TestHiveAccumuloTypes.java
----------------------------------------------------------------------
diff --git a/accumulo-handler/src/test/org/apache/hadoop/hive/accumulo/mr/TestHiveAccumuloTypes.java b/accumulo-handler/src/test/org/apache/hadoop/hive/accumulo/mr/TestHiveAccumuloTypes.java
index 778dfb0..2eeb7de 100644
--- a/accumulo-handler/src/test/org/apache/hadoop/hive/accumulo/mr/TestHiveAccumuloTypes.java
+++ b/accumulo-handler/src/test/org/apache/hadoop/hive/accumulo/mr/TestHiveAccumuloTypes.java
@@ -243,9 +243,9 @@ public class TestHiveAccumuloTypes {
// tiemestamp
baos.reset();
- Timestamp timestampValue = Timestamp.valueOf(LocalDateTime.now().toString());
+ Timestamp timestampValue = Timestamp.ofEpochMilli(System.currentTimeMillis());
ByteStream.Output output = new ByteStream.Output();
- TimestampWritableV2 timestampWritable = new TimestampWritableV2(Timestamp.valueOf(LocalDateTime.now().toString()));
+ TimestampWritableV2 timestampWritable = new TimestampWritableV2(timestampValue);
timestampWritable.write(new DataOutputStream(output));
output.close();
m.put(cfBytes, "timestamp".getBytes(), output.toByteArray());
http://git-wip-us.apache.org/repos/asf/hive/blob/e4158a87/ql/src/test/queries/clientnegative/date_literal3.q
----------------------------------------------------------------------
diff --git a/ql/src/test/queries/clientnegative/date_literal3.q b/ql/src/test/queries/clientnegative/date_literal3.q
deleted file mode 100644
index 9483509..0000000
--- a/ql/src/test/queries/clientnegative/date_literal3.q
+++ /dev/null
@@ -1,2 +0,0 @@
--- Invalid date value
-SELECT DATE '2001-01-32' FROM src;