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
PreparedQuery( DataEngineContext deContext, ExpressionCompiler exCompiler,
			Scriptable scope, IBaseQueryDefinition queryDefn,
			IPreparedQueryService queryService, Map appContext )
			throws DataException
	{
		logger.logp( Level.FINE,
				PreparedQuery.class.getName( ),
				"PreparedQuery",
				"PreparedQuery starts up." );
		assert queryDefn != null;
		this.expressionCompiler = exCompiler;
		this.dataEngineContext = deContext;
		this.sharedScope = scope;
		this.baseQueryDefn = queryDefn;
		this.queryService = queryService;
		this.appContext = appContext;
		
		this.subQueryMap = new HashMap( );
		this.aggrTable = new AggregateTable( this.sharedScope, queryDefn );
		logger.fine( "Start to prepare a PreparedQuery." );
		prepare( );
		logger.fine( "Finished preparing the PreparedQuery." );
	}
	
	/**
	 * @throws DataException
	 */
	private void prepare( ) throws DataException
	{