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
IBaseTransform groupDefn;
				if ( i == 0 )
					groupDefn = baseQueryDefn;
				else
				{
					groupDefn = (IGroupDefinition) groups.get( i - 1 );
				}
				prepareGroup( groupDefn, i, cx );
			}
		}
		finally
		{
		    Context.exit();
		}
	}
	
	/**
	 * @param trans
	 * @param groupLevel
	 * @param cx
	 * @throws DataException
	 */
	private void prepareGroup( IBaseTransform trans, int groupLevel, Context cx )
			throws DataException
	{
		
		prepareExpressions( trans.getAfterExpressions(), groupLevel, true, false,cx );
		prepareExpressions( trans.getBeforeExpressions(), groupLevel, false, false, cx );
		prepareExpressions( trans.getRowExpressions(),groupLevel, false, true, cx );