Bug 131011 Support running query based on report document data
Data Engine should support running a query based on data set and expression data stored in a report document. This bugzilla entry serves as a repository for design docs and notes related to this feature.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/executor/transform/group/GroupInformationUtil.java
{
		checkHasCurrentRow( );
		
		if ( this.groupCalculationUtil.getResultSetCache( ).getCurrentIndex( ) == 0 )
			return 0;
		
		if ( this.groups.length == 0 )
			return 1;
		
		int childGroupIdx = this.groupCalculationUtil.getResultSetCache( )
				.getCurrentIndex( );
		int currentGroupIdx = leafGroupIdx;
		int level;
		for ( level = this.groups.length - 1; level >= 0; level-- )
		{
			
			
			
			GroupInfo currentGroup = GroupUtil.findGroup( level,
					currentGroupIdx,
					this.groups );
			if ( childGroupIdx == currentGroup.firstChild )
			{
				
				
				childGroupIdx = currentGroupIdx;
				currentGroupIdx = currentGroup.parent;
				continue;
			}
			break;