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/10/19 10:54:32 UTC

incubator-kylin git commit: KYLIN-1068 only build 1 segment for test cubes to accelerate CI

Repository: incubator-kylin
Updated Branches:
  refs/heads/KYLIN-1068 64a1fcb63 -> 220d8ed5f


KYLIN-1068 only build 1 segment for test cubes to accelerate CI

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

Branch: refs/heads/KYLIN-1068
Commit: 220d8ed5f30e90ccdd9c4ece73f8b03036e84bb8
Parents: 64a1fcb
Author: shaofengshi <sh...@apache.org>
Authored: Mon Oct 19 16:54:30 2015 +0800
Committer: shaofengshi <sh...@apache.org>
Committed: Mon Oct 19 16:54:30 2015 +0800

----------------------------------------------------------------------
 .../org/apache/kylin/job/BuildCubeWithEngineTest.java    | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/220d8ed5/assembly/src/test/java/org/apache/kylin/job/BuildCubeWithEngineTest.java
----------------------------------------------------------------------
diff --git a/assembly/src/test/java/org/apache/kylin/job/BuildCubeWithEngineTest.java b/assembly/src/test/java/org/apache/kylin/job/BuildCubeWithEngineTest.java
index 5be11f1..26ad960 100644
--- a/assembly/src/test/java/org/apache/kylin/job/BuildCubeWithEngineTest.java
+++ b/assembly/src/test/java/org/apache/kylin/job/BuildCubeWithEngineTest.java
@@ -196,8 +196,8 @@ public class BuildCubeWithEngineTest {
         long date2 = f.parse("2013-01-01").getTime();
         long date3 = f.parse("2022-01-01").getTime();
         List<String> result = Lists.newArrayList();
-        result.add(buildSegment("test_kylin_cube_with_slr_empty", date1, date2));
-        result.add(buildSegment("test_kylin_cube_with_slr_empty", date2, date3));
+        result.add(buildSegment("test_kylin_cube_with_slr_empty", date1, date3));
+//        result.add(buildSegment("test_kylin_cube_with_slr_empty", date2, date3));
         return result;
     }
 
@@ -229,6 +229,8 @@ public class BuildCubeWithEngineTest {
         final String cubeName = "test_kylin_cube_without_slr_left_join_empty";
         // this cube's start date is 0, end date is 20120601000000
         long dateStart = cubeManager.getCube(cubeName).getDescriptor().getModel().getPartitionDesc().getPartitionDateStart();
+        
+        /*
         long dateEnd = f.parse("2012-06-01").getTime();
 
         clearSegment(cubeName);
@@ -245,6 +247,11 @@ public class BuildCubeWithEngineTest {
         dateEnd = f.parse("2023-01-01").getTime();
         result.add(buildSegment(cubeName, dateStart, dateEnd));
 
+*/
+        long dateEnd = f.parse("2023-01-01").getTime();
+
+        clearSegment(cubeName);
+        result.add(buildSegment(cubeName, dateStart, dateEnd));
         return result;
 
     }