Bug 128359 The logic is not correctly when a filter is added to the table on the layout
Description: The logic is not correctly when a filter is added to the table on the layout Steps to reproduce: Let me give an example. 1. Creat a report, new a datasource and a dataset 2. We consume that the dataset has 10 records(DataResult_A) . We set a filter(Filter_A) in the dataset, and then the 6 records of the dataset(DataResult_B) are gained. 3. Drag the dataset to the layout, and set another filter(Filter_B) on the table. Actual result: The result of Filter_B is based on DataResult_A. Expect result: The result of Filter_B should be based on DataResult_B.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/PreparedQuery.java
{
		queryDefn = null;
		this.aggrTable = null;
		this.engine = null;
		this.subQueryMap = null;
		logger.logp( Level.FINER,
				PreparedQuery.class.getName( ),
				"close",
				"Prepared query closed" );
		
	}
	
	/**
	 * 
	 * Finds a group given a text identifier of a group. Returns index of group
	 * found (1 = outermost group, 2 = second level group etc.). The text
	 * identifier can be the group name, the group key column name, or the group
	 * key expression text. Returns -1 if no matching group is found
	 * 
	 * @param groupText
	 * @return
	 */
	int getGroupIndex( String groupText )
	{
		assert groupText != null;
		assert queryDefn != null; 
		
		List groups = queryDefn.getGroups();
		for ( int i = 0; i < groups.size(); i++)
		{