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/impl/QueryExecutor.java
QueryExecutor.class.getName( ),
				"execute",
				"Start to execute" );
		if(this.isExecuted)
			return;
		
		odiResult = executeOdiQuery( eventHandler );
		
		resetComputedColumns();
		
		this.dataSet.setResultSet( odiResult, false );
			
	    
	    aggregates = new AggregateCalculator( this.aggrTable, odiResult );
		    
	    
	    aggregates.calculate( getQueryScope() );
		
		this.isExecuted = true;
		
		logger.logp( Level.FINER,
				QueryExecutor.class.getName( ),
				"execute",
				"Finish executing" );
	}
	
	private void resetComputedColumns() {
		List l = this.getDataSet().getComputedColumns();
		if( l!= null)
			l.removeAll( this.temporaryComputedColumns );