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
PreparedSubquery subquery = (PreparedSubquery) subQueryMap.get( subQueryName );
		if ( subquery == null )
		{
			DataException e = new DataException( ResourceConstants.SUBQUERY_NOT_FOUND,
					subQueryName );
			logger.logp( Level.FINE,
					PreparedQuery.class.getName( ),
					"execSubquery",
					"Subquery name not found",
					e );
			throw e;
		}
		return subquery.execute( iterator, subScope );
	}
	
	/**
	 * Closes the prepared query. This instance can no longer be executed after
	 * it is closed 
	 * 
	 * TODO: expose this method in the IPreparedQuery interface
	 */
	void close( )
	{
		this.baseQueryDefn = null;
		this.aggrTable = null;
		this.subQueryMap = null;
		
		logger.logp( Level.FINER,
				PreparedQuery.class.getName( ),
				"close",