Search in sources :

Example 1 with Assignments

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());
}
Also used : Assignments(com.facebook.presto.sql.planner.plan.Assignments) ProjectNode(com.facebook.presto.sql.planner.plan.ProjectNode)

Aggregations

Assignments (com.facebook.presto.sql.planner.plan.Assignments)1 ProjectNode (com.facebook.presto.sql.planner.plan.ProjectNode)1