private void testLeft() throws Exception { DeployUtil.prepareTestData("left", "test_kylin_cube_with_slr_left_join_empty"); String[] testCase = new String[] { "testLeftJoinCube", "testLeftJoinCube2", }; runTestAndAssertSucceed(testCase); }
@Before public void before() throws Exception { HBaseMetadataTestCase.staticCreateTestMetadata(AbstractKylinTestCase.SANDBOX_TEST_DATA); DeployUtil.initCliWorkDir(); DeployUtil.deployMetadata(); DeployUtil.overrideJobJarLocations(); final KylinConfig kylinConfig = KylinConfig.getInstanceFromEnv(); jobService = ExecutableManager.getInstance(kylinConfig); scheduler = DefaultScheduler.getInstance(); scheduler.init(new JobEngineConfig(kylinConfig), new ZookeeperJobLock()); if (!scheduler.hasStarted()) { throw new RuntimeException("scheduler has not been started"); } cubeManager = CubeManager.getInstance(kylinConfig); jobEngineConfig = new JobEngineConfig(kylinConfig); for (String jobId : jobService.getAllJobIds()) { if (jobService.getJob(jobId) instanceof CubingJob) { jobService.deleteJob(jobId); } } }