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
/**
	 * Return the QueryResults. But the execution of query would be deferred
	 * 
	 * @param outerResults
	 *            If query is nested within another query, this is the outer
	 *            query's query result handle.
	 * @param scope
	 *            The ElementState object for the report item using the query;
	 *            this acts as the JS scope for evaluating script expressions.
	 * @param executor
	 * @parem dataSourceQuery
	 */
	QueryResults doPrepare( IQueryResults outerResults,
			Scriptable scope, QueryExecutor executor,
			PreparedDataSourceQuery dataSourceQuery ) throws DataException
	{
		if ( this.baseQueryDefn == null )
		{
			
			DataException e = new DataException(ResourceConstants.PREPARED_QUERY_CLOSED);
			logger.logp( Level.WARNING,
					PreparedQuery.class.getName( ),
					"doPrepare",
					"PreparedQuery instance is closed.",
					e );
			throw e;
		}