You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tajo.apache.org by hy...@apache.org on 2013/12/15 16:51:35 UTC

git commit: TAJO-417: TestSQLExpression.testCastFromTable causes unit test failure. (hyunsik)

Updated Branches:
  refs/heads/master a90895a74 -> b4a71dc74


TAJO-417: TestSQLExpression.testCastFromTable causes unit test failure. (hyunsik)


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

Branch: refs/heads/master
Commit: b4a71dc74171416f4274e524d07a685b54d9067d
Parents: a90895a
Author: Hyunsik Choi <hy...@apache.org>
Authored: Mon Dec 16 00:47:52 2013 +0900
Committer: Hyunsik Choi <hy...@apache.org>
Committed: Mon Dec 16 00:47:52 2013 +0900

----------------------------------------------------------------------
 CHANGES.txt                                                     | 3 +++
 .../java/org/apache/tajo/engine/eval/TestSQLExpression.java     | 5 +++--
 2 files changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tajo/blob/b4a71dc7/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 87bbec5..8793472 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -146,6 +146,9 @@ Release 0.8.0 - unreleased
 
   BUG FIXES
 
+    TAJO-417: TestSQLExpression.testCastFromTable causes unit test failure.
+    (hyunsik)
+
     TAJO-415: Some complex queries causes NPE and unlimited recursions.
     (hyunsik)
 

http://git-wip-us.apache.org/repos/asf/incubator-tajo/blob/b4a71dc7/tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/eval/TestSQLExpression.java
----------------------------------------------------------------------
diff --git a/tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/eval/TestSQLExpression.java b/tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/eval/TestSQLExpression.java
index 62aa9de..13a5e2d 100644
--- a/tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/eval/TestSQLExpression.java
+++ b/tajo-core/tajo-core-backend/src/test/java/org/apache/tajo/engine/eval/TestSQLExpression.java
@@ -74,8 +74,9 @@ public class TestSQLExpression extends ExprTestBase {
         new String[]{"1980-04-01 01:50:01", "234.0"});
 
     testSimpleEval("select '1980-04-01 01:50:01'::timestamp;", new String [] {"1980-04-01 01:50:01"});
-    testSimpleEval("select '1980-04-01 01:50:01'::timestamp::bigint;", new String [] {"323369401000"});
-    testSimpleEval("select ('1980-04-01 01:50:01'::timestamp)::bigint;", new String [] {"323369401000"});
+    testSimpleEval("select '1980-04-01 01:50:01'::timestamp::bigint::timestamp", new String [] {"1980-04-01 01:50:01"});
+    testSimpleEval("select cast (('1980-04-01 01:50:01'::timestamp)::bigint as timestamp)",
+        new String [] {"1980-04-01 01:50:01"});
     testSimpleEval("select to_timestamp(cast ('1970-01-17 10:09:37'::timestamp as int8));",
         new String [] {"1970-01-17 10:09:37"});
   }