Bug 190419 The topn filter doesn't take effect on the datetime type dimension[1102]
Description: The topn filter doesn't take effect on the datetime type dimension[1102] Build number: 2.2.0.v20070601-1347 Steps to reproduce: 1, New a crosstab which includes datetime type dimension 2, Specify a filter on the year level using two filter condition data["year"] topn 2 or dimension["Date"]["year"] topn 2 3, Preview Expected result: Both filter condition can take effect Actual result: No effect only 2005 year in crosstab
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/data/api/CubeQueryExecutorHelper.java
String[] aggrNames = new String[aggrFuncs.length];
		for ( int k = 0; k < aggrFuncs.length; k++ )
		{
			aggrNames[k] = aggrFuncs[k].getName( );
		}
		for ( int k = 0; k < resultSet.length( ); k++ )
		{
			resultSet.seek( k );
			int fieldIndex = 0;
			Object[] fieldValues = new Object[fields.length];
			Object[] aggrValues = new Object[aggrFuncs.length];
			
			for ( int m = 0; m < aggrLevels.length; m++ )
			{
				int levelIndex = resultSet.getLevelIndex( aggrLevels[m] );
				if ( levelIndex < 0 || levelIndex >= resultSet.getLevelCount( ) )
					continue;
				fieldValues[fieldIndex++] = resultSet.getLevelKeyValue( levelIndex )[0];
			}
			
			for ( int m = 0; m < aggrFuncs.length; m++ )
			{
				int aggrIndex = resultSet.getAggregationIndex( aggrNames[m] );
				aggrValues[m] = resultSet.getAggregationValue( aggrIndex );
			}
			RowForFilter row = new RowForFilter( fields, aggrNames );
			row.setFieldValues( fieldValues );
			row.setAggrValues( aggrValues );
			IJSTopBottomFilterHelper filterHelper = filter.getFilterHelper( );
			int levelIndex = resultSet.getLevelIndex( filter.getTargetLevel( ) );