TAJO-868: TestDateTimeFunctions unit test is occasionally failed.

Closes #34


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

Branch: refs/heads/window_function
Commit: 500c683b0b1fa6ed3f1914528d60736e741c956e
Parents: ace1d47
Author: Hyunsik Choi <[email protected]>
Authored: Fri Jun 6 22:15:03 2014 -0700
Committer: Hyunsik Choi <[email protected]>
Committed: Fri Jun 6 22:15:18 2014 -0700

----------------------------------------------------------------------
 CHANGES                                                          | 2 ++
 .../org/apache/tajo/engine/function/TestDateTimeFunctions.java   | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tajo/blob/500c683b/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index adb67ec..1e4fb8f 100644
--- a/CHANGES
+++ b/CHANGES
@@ -63,6 +63,8 @@ Release 0.9.0 - unreleased
 
   BUG FIXES
 
+    TAJO-868: TestDateTimeFunctions unit test is occasionally failed. (hyunsik)
+
     TAJO-863: Column order mismatched in the JOIN query with asterisk 
selection. 
     (Hyoungjun Kim via hyunsik)
 

http://git-wip-us.apache.org/repos/asf/tajo/blob/500c683b/tajo-core/src/test/java/org/apache/tajo/engine/function/TestDateTimeFunctions.java
----------------------------------------------------------------------
diff --git 
a/tajo-core/src/test/java/org/apache/tajo/engine/function/TestDateTimeFunctions.java
 
b/tajo-core/src/test/java/org/apache/tajo/engine/function/TestDateTimeFunctions.java
index 1c59770..ef691f7 100644
--- 
a/tajo-core/src/test/java/org/apache/tajo/engine/function/TestDateTimeFunctions.java
+++ 
b/tajo-core/src/test/java/org/apache/tajo/engine/function/TestDateTimeFunctions.java
@@ -391,7 +391,7 @@ public class TestDateTimeFunctions extends ExprTestBase {
       testSimpleEval("select current_date();",
           new String[]{dateFormat(expectedDate, "yyyy-MM-dd")});
       testSimpleEval("select cast(extract(hour from current_time()) as INT4);",
-          new String[]{dateFormat(expectedDate, "HH")});
+          new 
String[]{String.valueOf(Integer.parseInt(dateFormat(expectedDate, "HH")))});
     } finally {
       TajoConf.setCurrentTimeZone(originTimeZone);
       TimeZone.setDefault(systemOriginTimeZone);
@@ -413,7 +413,7 @@ public class TestDateTimeFunctions extends ExprTestBase {
       testSimpleEval("select current_date;",
           new String[]{dateFormat(expectedDate, "yyyy-MM-dd")});
       testSimpleEval("select cast(extract(hour from current_time) as INT4);",
-          new String[]{dateFormat(expectedDate, "HH")});
+          new 
String[]{String.valueOf(Integer.parseInt(dateFormat(expectedDate, "HH")))});
     } finally {
       TajoConf.setCurrentTimeZone(originTimeZone);
       TimeZone.setDefault(systemOriginTimeZone);

Reply via email to