}
evals = new EvalNode[plan.getTargets().length];
evalContexts = new EvalContext[plan.getTargets().length];
for (int i = 0; i < plan.getTargets().length; i++) {
Target t = plan.getTargets()[i];
if (t.getEvalTree().getType() == EvalType.FIELD && !nonNullGroupingFields.contains(t.getColumnSchema())) {
evals[i] = new ConstEval(DatumFactory.createNullDatum());
evalContexts[i] = evals[i].newContext();
} else {
evals[i] = t.getEvalTree();
evalContexts[i] = evals[i].newContext();
}
}
}