tajo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jihoon...@apache.org
Subject [03/14] tajo git commit: TAJO-1188: Fix testcase testTimestampConstructor in TestTimestampDatum. (DaeMyung Kang via hyunsik)
Date Tue, 02 Dec 2014 03:56:36 GMT
TAJO-1188: Fix testcase testTimestampConstructor in TestTimestampDatum. (DaeMyung Kang via
hyunsik)


Project: http://git-wip-us.apache.org/repos/asf/tajo/repo
Commit: http://git-wip-us.apache.org/repos/asf/tajo/commit/0c97fc03
Tree: http://git-wip-us.apache.org/repos/asf/tajo/tree/0c97fc03
Diff: http://git-wip-us.apache.org/repos/asf/tajo/diff/0c97fc03

Branch: refs/heads/index_support
Commit: 0c97fc0319b0f33c3a76f591d48cb52f1df92567
Parents: f6e09a5
Author: Hyunsik Choi <hyunsik@apache.org>
Authored: Tue Nov 25 17:42:22 2014 +0900
Committer: Hyunsik Choi <hyunsik@apache.org>
Committed: Tue Nov 25 17:42:22 2014 +0900

----------------------------------------------------------------------
 CHANGES                                                           | 3 +++
 .../src/test/java/org/apache/tajo/datum/TestTimestampDatum.java   | 3 ++-
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tajo/blob/0c97fc03/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 06a0f47..6521c1c 100644
--- a/CHANGES
+++ b/CHANGES
@@ -62,6 +62,9 @@ Release 0.9.1 - unreleased
 
     TAJO-1163: TableDesc should use URI instead of Path. (hyunsik)
 
+    TAJO-1188: Fix testcase testTimestampConstructor in TestTimestampDatum.
+    (DaeMyung Kang via hyunsik)
+
 
   BUG FIXES
 

http://git-wip-us.apache.org/repos/asf/tajo/blob/0c97fc03/tajo-common/src/test/java/org/apache/tajo/datum/TestTimestampDatum.java
----------------------------------------------------------------------
diff --git a/tajo-common/src/test/java/org/apache/tajo/datum/TestTimestampDatum.java b/tajo-common/src/test/java/org/apache/tajo/datum/TestTimestampDatum.java
index 5f27cfa..5886083 100644
--- a/tajo-common/src/test/java/org/apache/tajo/datum/TestTimestampDatum.java
+++ b/tajo-common/src/test/java/org/apache/tajo/datum/TestTimestampDatum.java
@@ -151,7 +151,8 @@ public class TestTimestampDatum {
     assertEquals(datum2, datum);
 
     for (int i = 0; i < 100; i++) {
-      Calendar cal = Calendar.getInstance();
+      TimeZone timeZone = TimeZone.getTimeZone("UTC");
+      Calendar cal = Calendar.getInstance(timeZone);
       long jTime = System.currentTimeMillis();
       int uTime = (int)(jTime / 1000);
       cal.setTimeInMillis(jTime);


Mime
View raw message