attemptId = nonLeafTasks.iterator().next();
nonLeafTasks.remove(attemptId);
LOG.debug("Assigned based on * match");
QueryUnit task;
SubQuery subQuery = context.getSubQuery(attemptId.getQueryUnitId().getExecutionBlockId());
task = subQuery.getQueryUnit(attemptId.getQueryUnitId());
QueryUnitRequest taskAssign = new QueryUnitRequestImpl(
attemptId,
Lists.newArrayList(task.getAllFragments()),
"",
false,
task.getLogicalPlan().toJson(),
context.getQueryContext(),
subQuery.getDataChannel(),
subQuery.getBlock().getEnforcer());
if (!subQuery.getBlock().isRoot()) {
taskAssign.setInterQuery();
}
for (ScanNode scan : task.getScanNodes()) {
Collection<URI> fetches = task.getFetch(scan);
if (fetches != null) {