You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2015/04/26 06:42:20 UTC

[43/43] 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/bad1b867
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/bad1b867
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/bad1b867

Branch: refs/heads/master
Commit: bad1b867ec91e2b57dd2a13ce8a82c9a6f10c39a
Parents: 1219a08
Author: wangxiaoyu8 <wa...@jd.com>
Authored: Wed Apr 8 16:11:56 2015 +0800
Committer: Yang Li <li...@apache.org>
Committed: Sun Apr 26 12:38:17 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/bad1b867/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 dd904d4..96bdaa6 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
@@ -151,6 +151,8 @@ public class Tuple implements ITuple {
             return new BigDecimal(strValue);
         } else if ("timestamp".equals(dataType)) {
             return Long.valueOf(DateStrDictionary.stringToMillis(strValue));
+        } else if ("float".equals(dataType)){
+            return Float.valueOf(strValue);
         } else {
             return strValue;
         }