Bug 180838 If the cube is invalid, we should show a warning to user[1101]
Description: The result of measure are incorrect[1102] Build number: 2.2.0.v20070404-0630 Steps to reproduce: Using the attached report, I think the expected result is China 20 female Uk ... China 28 male USA ... But the result is China 48 female Uk ... male USA ... And we calculate the China of female and male in one measure of female.I think it is incorrect.
data/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/olap/data/impl/facttable/FactTableHelperTest2.java
AggregationDefinition[] aggregations = new AggregationDefinition[2];
		int[] sortType = new int[1];
		sortType[0] = IDimensionSortDefn.SORT_ASC;
		String[] levelNamesForFilter = new String[1];
		levelNamesForFilter[0] = "level21";
		AggregationFunctionDefinition[] funcitons = new AggregationFunctionDefinition[1];
		funcitons[0] = new AggregationFunctionDefinition( "measure1", BuiltInAggregationFactory.TOTAL_SUM_FUNC );
		aggregations[0] = new AggregationDefinition( levelNamesForFilter, sortType, funcitons );
		sortType = new int[2];
		sortType[0] = IDimensionSortDefn.SORT_ASC;
		sortType[1] = IDimensionSortDefn.SORT_ASC;
		levelNamesForFilter = new String[1];
		levelNamesForFilter[0] = "level31";
		aggregations[1] = new AggregationDefinition( levelNamesForFilter, sortType, funcitons );
		
		IAggregationResultSet[] resultSet = cubeQueryExcutorHelper.execute( aggregations,
				new StopSign( ) );
		assertEquals( resultSet[0].length( ), 2 );
		assertEquals( resultSet[0].getAggregationDataType( 0 ), DataType.DOUBLE_TYPE );
		assertEquals( resultSet[0].getLevelIndex( "level21" ), 0 );
		assertEquals( resultSet[0].getLevelKeyDataType( "level21", "level21" ), DataType.INTEGER_TYPE );
		resultSet[0].seek( 0 );
		assertEquals( resultSet[0].getLevelKeyValue( 0 )[0], new Integer(1) );
		assertEquals( resultSet[0].getAggregationValue( 0 ), new Double(6) );
		resultSet[0].seek( 1 );
		assertEquals( resultSet[0].getLevelKeyValue( 0 )[0], new Integer(2) );
		assertEquals( resultSet[0].getAggregationValue( 0 ), new Double(22) );
		
		assertEquals( resultSet[1].length( ), 8 );