kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liy...@apache.org
Subject kylin git commit: KYLIN-2222 relax backend check
Date Thu, 16 Feb 2017 07:45:46 GMT
Repository: kylin
Updated Branches:
  refs/heads/master a71193796 -> 61784b44b


KYLIN-2222 relax backend check


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

Branch: refs/heads/master
Commit: 61784b44b4ac4d3fa9ad6d3d7f9f84771cc0ab79
Parents: a711937
Author: Hongbin Ma <mahongbin@apache.org>
Authored: Thu Feb 16 15:45:58 2017 +0800
Committer: Hongbin Ma <mahongbin@apache.org>
Committed: Thu Feb 16 15:46:10 2017 +0800

----------------------------------------------------------------------
 .../java/org/apache/kylin/cube/model/RowKeyColDesc.java   | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/61784b44/core-cube/src/main/java/org/apache/kylin/cube/model/RowKeyColDesc.java
----------------------------------------------------------------------
diff --git a/core-cube/src/main/java/org/apache/kylin/cube/model/RowKeyColDesc.java b/core-cube/src/main/java/org/apache/kylin/cube/model/RowKeyColDesc.java
index 71fd4b9..1df73ad 100644
--- a/core-cube/src/main/java/org/apache/kylin/cube/model/RowKeyColDesc.java
+++ b/core-cube/src/main/java/org/apache/kylin/cube/model/RowKeyColDesc.java
@@ -86,10 +86,10 @@ public class RowKeyColDesc implements java.io.Serializable {
                 encoding = encodingName = TimeDimEnc.ENCODING_NAME;
             }
         }
-        if (DateDimEnc.ENCODING_NAME.equals(encodingName) && type.isDate() == false)
-            throw new IllegalArgumentException(colRef + " type is " + type + " and cannot
apply date encoding");
-        if (TimeDimEnc.ENCODING_NAME.equals(encodingName) && type.isTimeFamily()
== false)
-            throw new IllegalArgumentException(colRef + " type is " + type + " and cannot
apply time encoding");
+        //        if (DateDimEnc.ENCODING_NAME.equals(encodingName) && type.isDate()
== false)
+        //            throw new IllegalArgumentException(colRef + " type is " + type + "
and cannot apply date encoding");
+        //        if (TimeDimEnc.ENCODING_NAME.equals(encodingName) && type.isTimeFamily()
== false)
+        //            throw new IllegalArgumentException(colRef + " type is " + type + "
and cannot apply time encoding");
         if (encodingName.startsWith(FixedLenDimEnc.ENCODING_NAME) && (type.isIntegerFamily()
|| type.isNumberFamily()))
             throw new IllegalArgumentException(colRef + " type is " + type + " and cannot
apply fixed_length encoding");
     }
@@ -185,4 +185,4 @@ public class RowKeyColDesc implements java.io.Serializable {
 
         return true;
     }
-}
\ No newline at end of file
+}


Mime
View raw message