Bug 192829 Aggregation binding filter doesn't work for crosstab
The filter condition on bindings for Crosstab doesn't take effect. Currently Dte hasn't supported this yet.
data/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/olap/data/impl/CubeAggregationTest.java
funcitons[0] = new AggregationFunctionDefinition( "measure1", IBuildInAggregation.TOTAL_SUM_FUNC );
		AggregationFunctionDefinition[] funcitonsWithParameterCol = new AggregationFunctionDefinition[1];
		funcitonsWithParameterCol[0] = new AggregationFunctionDefinition( "measure1",
				IBuildInAggregation.TOTAL_SUM_FUNC );
		funcitonsWithParameterCol[0] = new AggregationFunctionDefinition( null,
				"measure1",
				new DimLevel( "dimension1", "level12" ),
				"col12",
				IBuildInAggregation.TOTAL_WEIGHTEDAVE_FUNC );
		aggregations[0] = new AggregationDefinition( null, null, funcitonsWithParameterCol );
		
		IAggregationResultSet[] resultSet = cubeQueryExcutorHelper.execute( aggregations,
				new StopSign( ) );
		
		
		assertEquals( resultSet[0].length( ), 1 );
		assertEquals( resultSet[0].getAggregationDataType( 0 ), DataType.DOUBLE_TYPE );
		assertEquals( resultSet[0].getLevelIndex( dimLevel31 ), -1 );
		resultSet[0].seek( 0 );
		assertEquals( resultSet[0].getLevelKeyValue( 0 ), null );
		assertEquals( resultSet[0].getAggregationValue( 0 ), new Double(3.8333333333333335) );
		
		for ( int i = 0; i < resultSet.length; i++ )
		{
			resultSet[i].close( );
		}
	}
	/**
	 * test simiple aggregation with only expression such as data["level21_sum"]>30.
	 * this will filter out the levels that does not qualify this condition.