kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaofeng...@apache.org
Subject [09/27] incubator-kylin git commit: KYLIN-943 update BuildCubeWithEngine to cover the topN cube
Date Tue, 29 Sep 2015 01:04:00 GMT
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/e9990d1a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/e9990d1a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/e9990d1a

Branch: refs/heads/2.x-staging
Commit: e9990d1a0e3b4fb7d52ccf61402d7d52ef90312b
Parents: 6ebd048
Author: shaofengshi <shaofengshi@apache.org>
Authored: Thu Sep 17 14:13:10 2015 +0800
Committer: shaofengshi <shaofengshi@apache.org>
Committed: Tue Sep 29 09:01:02 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/e9990d1a/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/e9990d1a/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 895718b..93868e7 100644
--- a/query/src/test/resources/query/sql/query81.sql
+++ b/query/src/test/resources/query/sql/query81.sql
@@ -25,4 +25,4 @@ inner JOIN edw.test_cal_dt as test_cal_dt
  inner JOIN edw.test_sites as test_sites
  ON test_kylin_fact.lstg_site_id = test_sites.site_id
  where test_cal_dt.week_beg_dt between DATE '2013-09-01' and DATE '2013-10-01' and (lstg_format_name='FP-GTC'
or 'a' = 'b')
- group by test_cal_dt.week_beg_dt
+ group by test_cal_dt.week_beg_dt
\ No newline at end of file


Mime
View raw message