You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by sh...@apache.org on 2015/05/27 06:34:41 UTC

[16/50] [abbrv] incubator-kylin git commit: KYLIN-666 Select float type column got class cast exception

KYLIN-666 Select float type column got class cast exception


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

Branch: refs/heads/0.8.0
Commit: 0eb756fe024cc9644f93c6c506333e3e889c3dda
Parents: 8efbc06
Author: wangxiaoyu8 <wa...@jd.com>
Authored: Wed Apr 8 16:11:56 2015 +0800
Committer: shaofengshi <sh...@apache.org>
Committed: Wed May 27 12:22:34 2015 +0800

----------------------------------------------------------------------
 storage/src/main/java/org/apache/kylin/storage/tuple/Tuple.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/0eb756fe/storage/src/main/java/org/apache/kylin/storage/tuple/Tuple.java
----------------------------------------------------------------------
diff --git a/storage/src/main/java/org/apache/kylin/storage/tuple/Tuple.java b/storage/src/main/java/org/apache/kylin/storage/tuple/Tuple.java
index 78abdce..950068b 100644
--- a/storage/src/main/java/org/apache/kylin/storage/tuple/Tuple.java
+++ b/storage/src/main/java/org/apache/kylin/storage/tuple/Tuple.java
@@ -196,6 +196,8 @@ public class Tuple implements ITuple {
             return new BigDecimal(strValue);
         } else if ("timestamp".equals(dataTypeName)) {
             return Long.valueOf(DateFormat.stringToMillis(strValue));
+        } else if ("float".equals(dataTypeName)){
+            return Float.valueOf(strValue);
         } else {
             return strValue;
         }