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
}
					temporaryComputedColumns.add(new ComputedColumn( "_{$TEMP_SORT_"+i+"$}_", sortKey, DataType.ANY_TYPE));
					sortIndex = -1; 
					sortKey = String.valueOf("_{$TEMP_SORT_"+i+"$}_");
					
					IQuery.SortSpec dest = new IQuery.SortSpec( sortIndex,
							sortKey,
							src.getSortDirection( ) == ISortDefinition.SORT_ASC );
					sortSpecs[i] = dest;
				}
				odiQuery.setOrdering( Arrays.asList( sortSpecs));
			}
			
		    List dataSetFilters = new ArrayList( );
		    List queryFilters = new ArrayList( );
		    if ( dataSet.getFilters( ) != null )
			{
				dataSetFilters = dataSet.getFilters( );
			}
		    
		    if ( this.baseQueryDefn.getFilters( ) != null )
			{
		    	queryFilters = this.baseQueryDefn.getFilters( );
			}
		    
		    
		    List multipassFilters = prepareFilters( cx, dataSetFilters, queryFilters, temporaryComputedColumns );
		   		   			  
		    		    
		    List computedColumns = null;