Bug 201355 The aggreagation of computed column should be working after the dataset filter[07]
Description: The aggreagation of computed column should be working after the dataset filter[07] Build number: 2.2.1.v20070828-0630 Steps to reproduce: 1, New a dataset 2, Add a computed column and specify the aggregate function to count 3, Preview 4, Add a filter in dataset 5, Preview and check the computed column result Expected result: The aggregation should count the value after the filter of dataset Actual result: The result is also the count of all the value.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/transform/pass/DataSetProcessUtil.java
ExpressionCompiler compiler = new ExpressionCompiler( );
		compiler.setDataSetMode( true );
		try
		{
			Context cx = Context.enter( );
			List aggrInfos = new ArrayList( );
			List aggrNames = new ArrayList( );
			for ( int i = 0; i < aggrComputedColumns.size( ); i++ )
			{
				ComputedColumn cc = (ComputedColumn) aggrComputedColumns.get( i );
				List args = cc.getAggregateArgument( );
				IBaseExpression[] exprs = null;
				int offset = 0;
				if ( cc.getExpression( ) != null )
				{
					exprs = new IBaseExpression[args.size( ) + 1];
					offset = 1;
					exprs[0] = cc.getExpression( );
				}
				else
					exprs = new IBaseExpression[args.size( )];
				for ( int j = offset; j < args.size( )+offset; j++ )
				{
					exprs[j] = (IBaseExpression) args.get( j - offset );
				}
				for ( int j = 0; j < exprs.length; j++ )
				{
					if ( exprs[j] instanceof IScriptExpression )
					{
						IScriptExpression scriptExpr = (IScriptExpression) exprs[j];