@Test(expected = ScanOutOfLimitException.class) @Ignore public void testScanOutOfLimit() { context.setThreshold(1); List<TblColRef> groups = mockup.buildGroups(); List<FunctionDesc> aggregations = mockup.buildAggregations(); search(groups, aggregations, null, context); }
@Before public void setUp() throws Exception { this.createTestMetadata(); CubeManager cubeMgr = CubeManager.getInstance(getTestConfig()); cube = cubeMgr.getCube("test_kylin_cube_without_slr_left_join_empty"); Assert.assertNotNull(cube); storageEngine = StorageFactory.createQuery(cube); String url = KylinConfig.getInstanceFromEnv().getStorageUrl(); context = new StorageContext(); context.setConnUrl(url); mockup = new StorageMockUtils(cube.getModel()); }