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
IHierarchyDefinition hier2 = dim2.createHierarchy( "dimension2" );
		ILevelDefinition level21 = hier2.createLevel( "level21" );
		createSortTestBindings( cqd );
		
		CubeFilterDefinition filter1 = new CubeFilterDefinition( new ScriptExpression( "data[\"rowGrandTotal\"] > 420" ) );
		filter1.setAxisQualifierLevels( null );
		filter1.setAxisQualifierValues( null );
		filter1.setTargetLevel( level21 );
		
		CubeFilterDefinition filter2 = new CubeFilterDefinition( new ScriptExpression( "data[\"country_year_total\"] != 120" ) );
		filter2.setAxisQualifierLevels( new ILevelDefinition[]{
			level21
		} );
		filter2.setAxisQualifierValues( new Object[]{
			"2002"
		} );
		filter2.setTargetLevel( level11 );
		CubeFilterDefinition filter3 = new CubeFilterDefinition( new ConditionalExpression( "data[\"country_year_total\"]",
				IConditionalExpression.OP_TOP_PERCENT,
				"50" ) );
		filter3.setAxisQualifierLevels( new ILevelDefinition[]{
			level21
		} );
		filter3.setAxisQualifierValues( new Object[]{
			"2002"
		} );
		filter3.setTargetLevel( level11 );
		
		cqd.addFilter( filter1 );
		cqd.addFilter( filter2 );