kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mahong...@apache.org
Subject kylin git commit: KYLIN-2199 bug fix
Date Thu, 17 Nov 2016 08:47:17 GMT
Repository: kylin
Updated Branches:
  refs/heads/master 28276e940 -> 9cf480bc6


KYLIN-2199 bug fix


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

Branch: refs/heads/master
Commit: 9cf480bc64b3790765a75f5312187df318aadc40
Parents: 28276e9
Author: Hongbin Ma <mahongbin@apache.org>
Authored: Thu Nov 17 16:46:59 2016 +0800
Committer: Hongbin Ma <mahongbin@apache.org>
Committed: Thu Nov 17 16:47:03 2016 +0800

----------------------------------------------------------------------
 .../org/apache/kylin/dimension/DimensionEncodingFactory.java   | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/9cf480bc/core-metadata/src/main/java/org/apache/kylin/dimension/DimensionEncodingFactory.java
----------------------------------------------------------------------
diff --git a/core-metadata/src/main/java/org/apache/kylin/dimension/DimensionEncodingFactory.java
b/core-metadata/src/main/java/org/apache/kylin/dimension/DimensionEncodingFactory.java
index 37d1014..843f4cd 100644
--- a/core-metadata/src/main/java/org/apache/kylin/dimension/DimensionEncodingFactory.java
+++ b/core-metadata/src/main/java/org/apache/kylin/dimension/DimensionEncodingFactory.java
@@ -73,6 +73,12 @@ public abstract class DimensionEncodingFactory {
 
         Map<String, Integer> result = Maps.newHashMap();
         for (Pair<String, Integer> p : factoryMap.keySet()) {
+            if (result.containsKey(p.getFirst())) {
+                if (result.get(p.getFirst()) > p.getSecond()) {
+                    continue;//skip small versions
+                }
+            }
+
             result.put(p.getFirst(), p.getSecond());
         }
         result.put(DictionaryDimEnc.ENCODING_NAME, 1);


Mime
View raw message