int expreLength = expressions.length; int i = 0; while ( i < expreLength )
for( int i = 0; i < expressions.length; i ++ )
	public void test_FilterGroup( ) throws Exception	{		String sqlStatement = "select COUNTRY,AMOUNT, SALE_DATE from " + getTestTableName( );		( ( OdaDataSetDesign )this.dataSet ).setQueryText( sqlStatement );				IBaseExpression[] expressions = new IBaseExpression[]{				new ScriptExpression( "row.COUNTRY" ),				new ScriptExpression( "row.AMOUNT" ),				new ScriptExpression( "row.SALE_DATE" )		};				QueryDefinition queryDefn = new QueryDefinition( );		queryDefn.setDataSetName( this.dataSet.getName( ) );		int expreLength = expressions.length;		int i = 0;		while ( i < expreLength )		{			queryDefn.addExpression( expressions[ i ],BaseTransform.ON_EACH_ROW );			i++;					}				FilterDefinition filterDefn = new FilterDefinition( 				new ConditionalExpression( "Total.sum(row.AMOUNT,null,1)", IConditionalExpression.OP_TOP_PERCENT, "50" ) );		//		FilterDefinition filterDefn = new FilterDefinition(//				new ScriptExpression(   "Total.sum(row.Amount,null,1) > 7000" )//					);		GroupDefinition groupDefn = new GroupDefinition( ); 		groupDefn.setKeyExpression( "row.COUNTRY" );		groupDefn.addFilter( filterDefn );				queryDefn.addGroup( groupDefn );		IPreparedQuery preparedQuery = dataEngine.prepare( queryDefn );		IQueryResults queryResults = preparedQuery.execute( null );		IResultIterator resultIt = queryResults.getResultIterator( );				outputQueryResult( resultIt, expressions );		checkOutputFile( );			}