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
sorter3.setSortDirection( ISortDefinition.SORT_DESC );
		
		CubeSortDefinition sorter4 = new CubeSortDefinition();
		sorter4.setExpression( "dimension[\"dimension1\"][\"level13\"]" );
		sorter4.setAxisQualifierLevels( null );
		sorter4.setAxisQualifierValues( null );
		sorter4.setTargetLevel( level13 );
		sorter4.setSortDirection( ISortDefinition.SORT_DESC );
		
		
		CubeSortDefinition sorter5 = new CubeSortDefinition();
		sorter5.setExpression( "dimension[\"dimension1\"][\"level11\"]" );
		sorter5.setAxisQualifierLevels( null );
		sorter5.setAxisQualifierValues( null );
		sorter5.setTargetLevel( level11 );
		sorter5.setSortDirection( ISortDefinition.SORT_DESC );
		
	/*	
		SortDefinition sorter3 = new SortDefinition();
		sorter3.setExpression( "dimension[\"dimension1\"][\"level12\"]" );
		sorter3.setSortDirection( ISortDefinition.SORT_DESC );
	*/	
		cqd.addSort( sorter1 );
		cqd.addSort( sorter2 );
		cqd.addSort( sorter3 );
		cqd.addSort( sorter4 );
		cqd.addSort( sorter5 );
		DataEngine engine = DataEngine.newDataEngine( DataEngineContext.newInstance( DataEngineContext.DIRECT_PRESENTATION,
				null,
				null,