Java Code Examples for org.apache.kylin.common.util.LocalFileMetadataTestCase#LOCALMETA_TEMP_DATA
The following examples show how to use
org.apache.kylin.common.util.LocalFileMetadataTestCase#LOCALMETA_TEMP_DATA .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CubeDescTest.java From kylin-on-parquet-v2 with Apache License 2.0 | 5 votes |
@Test public void testTooManyRowkeys() throws Exception { File metaFile = new File(LocalFileMetadataTestCase.LOCALMETA_TEMP_DATA, "cube_desc/ut_78_rowkeys.json.bad"); Assert.assertTrue(metaFile.exists()); String path = metaFile.getPath(); metaFile.renameTo(new File(path.substring(0, path.length() - 4))); thrown.expect(IllegalArgumentException.class); thrown.expectMessage( "Too many rowkeys (78) in CubeDesc, please try to reduce dimension number or adopt derived dimensions"); getTestConfig().clearManagers(); CubeDesc cubeDesc = CubeDescManager.getInstance(getTestConfig()).getCubeDesc("ut_78_rowkeys"); cubeDesc.init(getTestConfig()); }
Example 2
Source File: CuboidSchedulerTest.java From kylin-on-parquet-v2 with Apache License 2.0 | 5 votes |
private CubeDesc getFiftyDimFiveCapCubeDesc() { File metaFile = new File(LocalFileMetadataTestCase.LOCALMETA_TEMP_DATA, "cube_desc/fifty_dim_five_cap.json.bad"); assertTrue(metaFile.exists()); String path = metaFile.getPath(); metaFile.renameTo(new File(path.substring(0, path.length() - 4))); return CubeDescManager.getInstance(getTestConfig()).getCubeDesc("fifty_dim_five_cap"); }
Example 3
Source File: CuboidSchedulerTest.java From kylin-on-parquet-v2 with Apache License 2.0 | 5 votes |
@Test(expected=RuntimeException.class) public void testTooManyCombination() { File twentyFile = new File(new File(LocalFileMetadataTestCase.LOCALMETA_TEMP_DATA, "cube_desc"), "twenty_dim"); twentyFile.renameTo(new File(twentyFile.getPath().substring(0, twentyFile.getPath().length() - 4))); CubeDesc cube = getTwentyDimCubeDesc(); CuboidScheduler cuboidScheduler = cube.getInitialCuboidScheduler(); cuboidScheduler.getCuboidCount(); twentyFile.renameTo(new File(twentyFile.getPath() + ".bad")); }
Example 4
Source File: CubeDescTest.java From kylin with Apache License 2.0 | 5 votes |
@Test public void testTooManyRowkeys() throws Exception { File metaFile = new File(LocalFileMetadataTestCase.LOCALMETA_TEMP_DATA, "cube_desc/ut_78_rowkeys.json.bad"); Assert.assertTrue(metaFile.exists()); String path = metaFile.getPath(); metaFile.renameTo(new File(path.substring(0, path.length() - 4))); thrown.expect(IllegalArgumentException.class); thrown.expectMessage( "Too many rowkeys (78) in CubeDesc, please try to reduce dimension number or adopt derived dimensions"); getTestConfig().clearManagers(); CubeDesc cubeDesc = CubeDescManager.getInstance(getTestConfig()).getCubeDesc("ut_78_rowkeys"); cubeDesc.init(getTestConfig()); }
Example 5
Source File: CuboidSchedulerTest.java From kylin with Apache License 2.0 | 5 votes |
private CubeDesc getFiftyDimFiveCapCubeDesc() { File metaFile = new File(LocalFileMetadataTestCase.LOCALMETA_TEMP_DATA, "cube_desc/fifty_dim_five_cap.json.bad"); assertTrue(metaFile.exists()); String path = metaFile.getPath(); metaFile.renameTo(new File(path.substring(0, path.length() - 4))); return CubeDescManager.getInstance(getTestConfig()).getCubeDesc("fifty_dim_five_cap"); }
Example 6
Source File: CuboidSchedulerTest.java From kylin with Apache License 2.0 | 5 votes |
@Test(expected=RuntimeException.class) public void testTooManyCombination() { File twentyFile = new File(new File(LocalFileMetadataTestCase.LOCALMETA_TEMP_DATA, "cube_desc"), "twenty_dim"); twentyFile.renameTo(new File(twentyFile.getPath().substring(0, twentyFile.getPath().length() - 4))); CubeDesc cube = getTwentyDimCubeDesc(); CuboidScheduler cuboidScheduler = cube.getInitialCuboidScheduler(); cuboidScheduler.getCuboidCount(); twentyFile.renameTo(new File(twentyFile.getPath() + ".bad")); }