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.tests/test/org/eclipse/birt/data/engine/olap/api/CubeFeaturesTest.java
ILevelDefinition level11 = hier1.createLevel( "level11" );
		ILevelDefinition level12 = hier1.createLevel( "level12" );
		ILevelDefinition level13 = hier1.createLevel( "level13" );
		IDimensionDefinition dim2 = rowEdge.createDimension( "dimension2" );
		IHierarchyDefinition hier2 = dim2.createHierarchy( "dimension2" );
		ILevelDefinition level21 = hier2.createLevel( "level21" );
		
		createSortTestBindings( cqd );
		
		
		CubeSortDefinition sorter1 = new CubeSortDefinition();
		sorter1.setExpression( "data[\"rowGrandTotal\"]" );
		sorter1.setAxisQualifierLevels( null );
		sorter1.setAxisQualifierValues( null );
		sorter1.setTargetLevel( level21 );
		sorter1.setSortDirection( ISortDefinition.SORT_DESC );
		
		
		CubeSortDefinition sorter2 = new CubeSortDefinition();
		sorter2.setExpression( "data[\"city_year_total\"]" );
		sorter2.setAxisQualifierLevels( new ILevelDefinition[]{level21} );
		sorter2.setAxisQualifierValues( new Object[]{"2002"} );
		sorter2.setTargetLevel( level12 );
		sorter2.setSortDirection( ISortDefinition.SORT_DESC );
		
		CubeSortDefinition sorter3 = new CubeSortDefinition();
		sorter3.setExpression( "data[\"country_year_total\"]" );
		sorter3.setAxisQualifierLevels( new ILevelDefinition[]{level21} );
		sorter3.setAxisQualifierValues( new Object[]{"2002"} );
		sorter3.setTargetLevel( level11 );