Bug 200516 CachedQueryResults should also implement IQueryService.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/QueryExecutor.java
else
			{
				
				odiDataSource = dataSource.getOdiDataSource( );
				 
				
				odiDataSource.setAppContext( queryAppContext );
			}
		}
	}
	/**
	 * Populates odiQuery with this query's definitions
	 * 
	 * @throws DataException
	 */
	protected void populateOdiQuery( ) throws DataException
	{
		assert odiQuery != null;
		assert this.baseQueryDefn != null;
		Context cx = Context.enter( );
		try
		{
			
			populateGrouping( cx );
			
			
			populateSorting( );
			
			populateFetchEvent( cx );