Bug 167777 org.eclipse.birt.tests.data has compile error in daily build 20061213
org.eclipse.birt.tests.data has compile error in daily build 20061213. Please see the attachment for details.
testsuites/org.eclipse.birt.tests.data/src/org/eclipse/birt/tests/data/engine/api/MultiPass_SortTest.java
.getString( "Api.TestData.TableSQL" ), ConfigText
				.getString( "Api.TestData.TestDataFileName" ) );
	}
	/**
	 * Test feature of aggregation expression
	 */
	public void test_SortOnAggregationExpression( ) throws Exception
	{
		
		
		String testSQL = "select COUNTRY, AMOUNT from " + getTestTableName( );
		( (OdaDataSetDesign) this.dataSet ).setQueryText( testSQL );
		IBaseExpression[] expressions = new IBaseExpression[]{
				new ScriptExpression( "dataSetRow.COUNTRY", 0 ),
				new ScriptExpression( "dataSetRow.AMOUNT", 2 ),
				new ScriptExpression( "Total.runningSum(dataSetRow.AMOUNT)", 2 )};
		String names[] = {"COL_COUNTRY", "COL_AMOUNT"};
		SortDefinition[] sortDef = new SortDefinition[]{new SortDefinition( )};
		sortDef[0]
				.setExpression( "dataSetRow.AMOUNT/Total.sum(dataSetRow.AMOUNT)" );
		sortDef[0].setSortDirection( ISortDefinition.SORT_DESC );
		
		QueryDefinition queryDefn = newReportQuery( );
		queryDefn.addSort( sortDef[0] );
		for ( int i = 0; i < 2; i++ )
		{
			queryDefn.addResultSetExpression( names[i], expressions[i] );
		}
		IPreparedQuery preparedQuery = dataEngine.prepare( queryDefn );
		IQueryResults queryResults = preparedQuery.execute( null );