You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by ma...@apache.org on 2016/04/14 14:15:16 UTC
[1/2] kylin git commit: fix ci
Repository: kylin
Updated Branches:
refs/heads/yang-m1 b11491549 -> aeacd9732
fix ci
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/aeacd973
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/aeacd973
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/aeacd973
Branch: refs/heads/yang-m1
Commit: aeacd9732de9ac1e7c20c1e700f8563630d2e04f
Parents: 9d7a34d
Author: Hongbin Ma <ma...@apache.org>
Authored: Thu Apr 14 20:15:04 2016 +0800
Committer: Hongbin Ma <ma...@apache.org>
Committed: Thu Apr 14 20:15:11 2016 +0800
----------------------------------------------------------------------
.../kylin/storage/hbase/steps/RangeKeyDistributionReducer.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/kylin/blob/aeacd973/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/steps/RangeKeyDistributionReducer.java
----------------------------------------------------------------------
diff --git a/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/steps/RangeKeyDistributionReducer.java b/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/steps/RangeKeyDistributionReducer.java
index c927ceb..b694f5f 100644
--- a/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/steps/RangeKeyDistributionReducer.java
+++ b/storage-hbase/src/main/java/org/apache/kylin/storage/hbase/steps/RangeKeyDistributionReducer.java
@@ -66,7 +66,7 @@ public class RangeKeyDistributionReducer extends KylinReducer<Text, LongWritable
}
if (context.getConfiguration().get(BatchConstants.CFG_REGION_SPLIT_SIZE) != null) {
- cut = Integer.valueOf(context.getConfiguration().get(BatchConstants.CFG_REGION_SPLIT_SIZE));
+ cut = Float.valueOf(context.getConfiguration().get(BatchConstants.CFG_REGION_SPLIT_SIZE));
}
if (context.getConfiguration().get(BatchConstants.CFG_REGION_NUMBER_MIN) != null) {
[2/2] kylin git commit: fix ci
Posted by ma...@apache.org.
fix ci
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/9d7a34d1
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/9d7a34d1
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/9d7a34d1
Branch: refs/heads/yang-m1
Commit: 9d7a34d16a9fd95d816e789a67c8927367078b6b
Parents: b114915
Author: Hongbin Ma <ma...@apache.org>
Authored: Thu Apr 14 17:41:34 2016 +0800
Committer: Hongbin Ma <ma...@apache.org>
Committed: Thu Apr 14 20:15:11 2016 +0800
----------------------------------------------------------------------
.../org/apache/kylin/gridtable/DictGridTableTest.java | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/kylin/blob/9d7a34d1/core-cube/src/test/java/org/apache/kylin/gridtable/DictGridTableTest.java
----------------------------------------------------------------------
diff --git a/core-cube/src/test/java/org/apache/kylin/gridtable/DictGridTableTest.java b/core-cube/src/test/java/org/apache/kylin/gridtable/DictGridTableTest.java
index b1b5ee9..56db01c 100644
--- a/core-cube/src/test/java/org/apache/kylin/gridtable/DictGridTableTest.java
+++ b/core-cube/src/test/java/org/apache/kylin/gridtable/DictGridTableTest.java
@@ -29,6 +29,7 @@ import java.util.List;
import org.apache.kylin.common.util.ByteArray;
import org.apache.kylin.common.util.BytesSerializer;
import org.apache.kylin.common.util.ImmutableBitSet;
+import org.apache.kylin.common.util.LocalFileMetadataTestCase;
import org.apache.kylin.common.util.Pair;
import org.apache.kylin.cube.gridtable.CubeCodeSystem;
import org.apache.kylin.dict.NumberDictionaryBuilder;
@@ -52,13 +53,14 @@ import org.apache.kylin.metadata.filter.TupleFilter.FilterOperatorEnum;
import org.apache.kylin.metadata.model.ColumnDesc;
import org.apache.kylin.metadata.model.TableDesc;
import org.apache.kylin.metadata.model.TblColRef;
+import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import com.google.common.collect.Lists;
-public class DictGridTableTest {
+public class DictGridTableTest extends LocalFileMetadataTestCase {
private GridTable table;
private GTInfo info;
@@ -74,8 +76,17 @@ public class DictGridTableTest {
private CompareTupleFilter ageComp3;
private CompareTupleFilter ageComp4;
+ @After
+ public void after() throws Exception {
+
+ this.cleanupTestMetadata();
+ }
+
@Before
public void setup() throws IOException {
+
+ this.createTestMetadata();
+
table = newTestTable();
info = table.getInfo();