kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaofeng...@apache.org
Subject incubator-kylin git commit: KYLIN-943 update BuildCubeWithEngine to cover the topN cube
Date Thu, 17 Sep 2015 06:13:19 GMT
Repository: incubator-kylin
Updated Branches:
  refs/heads/KYLIN-943 38201be29 -> 1fbbf6eaf


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/1fbbf6ea
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/1fbbf6ea
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/1fbbf6ea

Branch: refs/heads/KYLIN-943
Commit: 1fbbf6eaf9c097e4d79cce1b58a27940f4acd107
Parents: 38201be
Author: shaofengshi <shaofengshi@apache.org>
Authored: Thu Sep 17 14:13:10 2015 +0800
Committer: shaofengshi <shaofengshi@apache.org>
Committed: Thu Sep 17 14:13:10 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/1fbbf6ea/job/src/test/java/org/apache/kylin/job/BuildCubeWithEngineTest.java
----------------------------------------------------------------------
diff --git a/job/src/test/java/org/apache/kylin/job/BuildCubeWithEngineTest.java b/job/src/test/java/org/apache/kylin/job/BuildCubeWithEngineTest.java
index 4564ccc..b2b46c1 100644
--- a/job/src/test/java/org/apache/kylin/job/BuildCubeWithEngineTest.java
+++ b/job/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/1fbbf6ea/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 


Mime
View raw message