Bug 132519 The program is differ from the specification
Description: The program is differ from the specification Detail: 1.In the code of BuiltInAggregationFactory.java public static final String TOTAL_TOP_PERCENT_FUNC = "ISTOPPERCENT"; public static final String TOTAL_BOTTOM_PERCENT_FUNC = "ISBOTTOMPERCENT"; should change to: public static final String TOTAL_TOP_PERCENT_FUNC = "ISTOPNPERCENT"; public static final String TOTAL_BOTTOM_PERCENT_FUNC = "ISBOTTOMNPERCENT"; 2. the function Total.isTopNPercent( expr, pct ) the value of Pct should be [0,100]
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/PreparedQuery.java
private IConditionalExpression transformConditionalExpression(
			IConditionalExpression ce )
	{
		String prefix = null;
		
		switch ( ce.getOperator( ) )
		{
			case IConditionalExpression.OP_TOP_N :
				prefix = "Total.isTopN";
				break;
			case IConditionalExpression.OP_TOP_PERCENT :
				prefix = "Total.isTopPercent";
				break;
			case IConditionalExpression.OP_BOTTOM_N :
				prefix = "Total.isBottomN";
				break;
			case IConditionalExpression.OP_BOTTOM_PERCENT :
				prefix = "Total.isBottomPercent";
				break;
		}
		
		if( prefix != null )
		{
			ce = new ConditionalExpression( prefix+"("
					+ ce.getExpression( ).getText( ) + ","
					+ ce.getOperand1( ).getText( ) + ")",
					IConditionalExpression.OP_TRUE );
		}
		return ce;
	}