/**
* Runs the plan as a background task.
*/
Future<Collection<RunOutcome>> runRefInterpreterPlan(CompletionService<Collection<RunOutcome>> service) {
LogicalPlan parsedPlan = LogicalPlan.parse(DrillConfig.create(), plan);
IteratorRegistry ir = new IteratorRegistry();
DrillConfig config = DrillConfig.create();
config.setSinkQueues(0, queue);
final ReferenceInterpreter i = new ReferenceInterpreter(parsedPlan, ir, new BasicEvaluatorFactory(ir),
new RSERegistry(config));
try {