Bug 118592 Report error
please see attached design file.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/ResultIterator.java
}
	/**
	 * Returns the 1-based index of the outermost group in which the current row
	 * is the last row. For example, if a query contain N groups (group with
	 * index 1 being the outermost group, and group with index N being the
	 * innermost group), and this function returns a value M, it indicates that
	 * the current row is the last row in groups with indexes (M, M+1, ..., N ).
	 * 
	 * @return 1-based index of the outermost group in which the current row is
	 *         the last row; (N+1) if the current row is not at the end of any
	 *         group; 0 if the result set has no groups.
	 */
	public int getEndingGroupLevel( ) throws DataException
	{
		try
		{
			logger.logp( Level.FINE,
					ResultIterator.class.getName( ),
					"getEndingGroupLevel",
					"return the ending group level" );
			return odiResult.getEndingGroupLevel( );
		}
		catch ( DataException e )
		{
			throw e;
		}
	}
	
	/**
	 * Returns the secondary result specified by a SubQuery that was defined in