use of com.facebook.presto.sql.planner.plan.Assignments in project presto by prestodb.
the class QueryPlanner method explicitCoercionSymbols.
private PlanBuilder explicitCoercionSymbols(PlanBuilder subPlan, Iterable<Symbol> alreadyCoerced, Iterable<? extends Expression> uncoerced) {
TranslationMap translations = subPlan.copyTranslations();
Assignments assignments = Assignments.builder().putAll(coerce(uncoerced, subPlan, translations)).putAll(Assignments.identity(alreadyCoerced)).build();
return new PlanBuilder(translations, new ProjectNode(idAllocator.getNextId(), subPlan.getRoot(), assignments), analysis.getParameters());
}
Aggregations