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/09/21 04:16:12 UTC

[06/13] incubator-kylin git commit: KYLIN-943 update BuildCubeWithEngine to cover the topN cube

KYLIN-943 update BuildCubeWithEngine to cover the topN cube


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

Branch: refs/heads/KYLIN-943
Commit: 0cc05217cb45f02670748270567bb38e3e63e745
Parents: 988c2e7
Author: shaofengshi <sh...@apache.org>
Authored: Thu Sep 17 14:13:10 2015 +0800
Committer: shaofengshi <sh...@apache.org>
Committed: Mon Sep 21 10:11:54 2015 +0800

----------------------------------------------------------------------
 .../java/org/apache/kylin/job/BuildCubeWithEngineTest.java  | 9 ++++-----
 query/src/test/resources/query/sql/query81.sql              | 2 +-
 2 files changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/0cc05217/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 4564ccc..b2b46c1 100644
--- a/assembly/src/test/java/org/apache/kylin/job/BuildCubeWithEngineTest.java
+++ b/assembly/src/test/java/org/apache/kylin/job/BuildCubeWithEngineTest.java
@@ -120,18 +120,17 @@ public class BuildCubeWithEngineTest {
     @Test
     public void test() throws Exception {
         DeployUtil.prepareTestDataForNormalCubes("test_kylin_cube_with_slr_left_join_empty");
-//        testInner();
+        testInner();
         testLeft();
     }
 
     private void testInner() throws Exception {
-        String[] testCase = new String[] { "testInnerJoinTopNCube" };
-       // String[] testCase = new String[] { "testInnerJoinCube", "testInnerJoinCube2", "testInnerJoinTopNCube"};
+       String[] testCase = new String[] { "testInnerJoinCube", "testInnerJoinCube2"};
         runTestAndAssertSucceed(testCase);
     }
 
     private void testLeft() throws Exception {
-        String[] testCase = new String[] { "testLeftJoinCube", "testLeftJoinCube2", };
+        String[] testCase = new String[] { "testLeftJoinCube", "testLeftJoinCube2", "testLeftJoinTopNCube" };
         runTestAndAssertSucceed(testCase);
     }
 
@@ -187,7 +186,7 @@ public class BuildCubeWithEngineTest {
 
     @SuppressWarnings("unused")
     // called by reflection
-    private List<String> testInnerJoinTopNCube() throws Exception {
+    private List<String> testLeftJoinTopNCube() throws Exception {
         SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd");
         f.setTimeZone(TimeZone.getTimeZone("GMT"));
         long date1 = 0;

http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/0cc05217/query/src/test/resources/query/sql/query81.sql
----------------------------------------------------------------------
diff --git a/query/src/test/resources/query/sql/query81.sql b/query/src/test/resources/query/sql/query81.sql
index 78e30c5..e580281 100644
--- a/query/src/test/resources/query/sql/query81.sql
+++ b/query/src/test/resources/query/sql/query81.sql
@@ -19,7 +19,7 @@
 SELECT 
  seller_id 
  ,sum(test_kylin_fact.price) as GMV 
- FROM test_kylin_fact inner join edw.test_cal_dt as test_cal_dt
+ FROM test_kylin_fact left join edw.test_cal_dt as test_cal_dt
  ON test_kylin_fact.cal_dt = test_cal_dt.cal_dt
  where test_kylin_fact.cal_dt < DATE '2013-02-01' 
  group by