You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tajo.apache.org by ji...@apache.org on 2013/12/12 06:36:02 UTC

git commit: TAJO-411: Fix Bug: createFromInt8's DATE type should be TIMESTAMP. (DaeMyung Kang via jihoon)

Updated Branches:
  refs/heads/master 2ff0eeacc -> 1b3cfb100


TAJO-411: Fix Bug: createFromInt8's DATE type should be TIMESTAMP. (DaeMyung Kang via jihoon)


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

Branch: refs/heads/master
Commit: 1b3cfb100c981223ebf82b9021b51eeb7d1cd909
Parents: 2ff0eea
Author: Jihoon Son <ji...@apache.org>
Authored: Thu Dec 12 14:35:37 2013 +0900
Committer: Jihoon Son <ji...@apache.org>
Committed: Thu Dec 12 14:35:37 2013 +0900

----------------------------------------------------------------------
 CHANGES.txt                                                       | 2 ++
 tajo-common/src/main/java/org/apache/tajo/datum/DatumFactory.java | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tajo/blob/1b3cfb10/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 3c4fbd0..96f43b8 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -142,6 +142,8 @@ Release 0.8.0 - unreleased
 
   BUG FIXES
 
+    TAJO-411: Fix Bug: createFromInt8's DATE type should be TIMESTAMP. (DaeMyung Kang via jihoon)
+
     TAJO-390: Queries on history are expired ealier than a given expiry time.
     (hyoungjunkim via hyunsik)
 

http://git-wip-us.apache.org/repos/asf/incubator-tajo/blob/1b3cfb10/tajo-common/src/main/java/org/apache/tajo/datum/DatumFactory.java
----------------------------------------------------------------------
diff --git a/tajo-common/src/main/java/org/apache/tajo/datum/DatumFactory.java b/tajo-common/src/main/java/org/apache/tajo/datum/DatumFactory.java
index b4c9f17..b184f91 100644
--- a/tajo-common/src/main/java/org/apache/tajo/datum/DatumFactory.java
+++ b/tajo-common/src/main/java/org/apache/tajo/datum/DatumFactory.java
@@ -129,7 +129,7 @@ public class DatumFactory {
     switch (type.getType()) {
     case INT8:
       return new Int8Datum(val);
-    case DATE:
+    case TIMESTAMP:
       return new TimestampDatum(val);
     default:
       throw new UnsupportedOperationException("Cannot create " + type.getType().name() + " datum from INT8");