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
Context cx = Context.enter();		
		try
		{
			
			
			
			
			
			List groups = baseQueryDefn.getGroups( );
			IGroupDefinition group;
			for ( int i = 0; i < groups.size( ); i++ )
			{
				group = (IGroupDefinition) groups.get( i );
				if ( group.getName( ) == null
						|| group.getName( ).trim( ).length( ) == 0 )
					continue;
				for ( int j = 0; j < groups.size( ); j++ )
				{
					if ( group.getName( )
							.equals( ( (IGroupDefinition) groups.get( j ) ).getName( ) == null
									? ""
									: ( (IGroupDefinition) groups.get( j ) ).getName( ) )
							&& j != i )
						throw new DataException( ResourceConstants.DUPLICATE_GROUP_NAME );
				}
			}
			
			for ( int i = 0; i <= groups.size( ); i++ )
			{