use of org.teiid.query.analysis.AnalysisRecord in project teiid by teiid.
the class BaseQueryTest method doProcess.
protected void doProcess(QueryMetadataInterface metadata, String sql, CapabilitiesFinder capFinder, ProcessorDataManager dataManager, List[] expectedResults, boolean debug, CommandContext context) throws TeiidComponentException, TeiidProcessingException, QueryMetadataException, QueryPlannerException, Exception {
Command command = TestOptimizer.helpGetCommand(sql, metadata, null);
// plan
AnalysisRecord analysisRecord = new AnalysisRecord(false, debug);
ProcessorPlan plan = null;
try {
plan = QueryOptimizer.optimizePlan(command, metadata, null, capFinder, analysisRecord, context);
} finally {
if (debug) {
System.out.println(analysisRecord.getDebugLog());
}
}
TestProcessor.doProcess(plan, dataManager, expectedResults, context);
}
Aggregations