Search in sources :

Example 6 with PlanFragmentId

use of com.facebook.presto.sql.planner.plan.PlanFragmentId in project presto by prestodb.

the class TestStageStateMachine method createValuesPlan.

private static PlanFragment createValuesPlan() {
    Symbol symbol = new Symbol("column");
    PlanNodeId valuesNodeId = new PlanNodeId("plan");
    PlanFragment planFragment = new PlanFragment(new PlanFragmentId("plan"), new ValuesNode(valuesNodeId, ImmutableList.of(symbol), ImmutableList.of(ImmutableList.of(new StringLiteral("foo")))), ImmutableMap.of(symbol, VARCHAR), SOURCE_DISTRIBUTION, ImmutableList.of(valuesNodeId), new PartitioningScheme(Partitioning.create(SINGLE_DISTRIBUTION, ImmutableList.of()), ImmutableList.of(symbol)));
    return planFragment;
}
Also used : PlanNodeId(com.facebook.presto.sql.planner.plan.PlanNodeId) ValuesNode(com.facebook.presto.sql.planner.plan.ValuesNode) StringLiteral(com.facebook.presto.sql.tree.StringLiteral) Symbol(com.facebook.presto.sql.planner.Symbol) PartitioningScheme(com.facebook.presto.sql.planner.PartitioningScheme) PlanFragmentId(com.facebook.presto.sql.planner.plan.PlanFragmentId) PlanFragment(com.facebook.presto.sql.planner.PlanFragment)

Aggregations

PlanFragment (com.facebook.presto.sql.planner.PlanFragment)6 PlanFragmentId (com.facebook.presto.sql.planner.plan.PlanFragmentId)6 PartitioningScheme (com.facebook.presto.sql.planner.PartitioningScheme)3 Symbol (com.facebook.presto.sql.planner.Symbol)3 PlanNodeId (com.facebook.presto.sql.planner.plan.PlanNodeId)3 TableHandle (com.facebook.presto.metadata.TableHandle)2 TestingColumnHandle (com.facebook.presto.sql.planner.TestingColumnHandle)2 TestingTableHandle (com.facebook.presto.sql.planner.TestingTableHandle)2 JoinNode (com.facebook.presto.sql.planner.plan.JoinNode)2 PlanVisitor (com.facebook.presto.sql.planner.plan.PlanVisitor)2 RemoteSourceNode (com.facebook.presto.sql.planner.plan.RemoteSourceNode)2 TableScanNode (com.facebook.presto.sql.planner.plan.TableScanNode)2 VisibleForTesting (com.google.common.annotations.VisibleForTesting)2 ImmutableSet (com.google.common.collect.ImmutableSet)2 Set (java.util.Set)2 ConnectorId (com.facebook.presto.connector.ConnectorId)1 SqlStageExecution (com.facebook.presto.execution.SqlStageExecution)1 StageState (com.facebook.presto.execution.StageState)1 RUNNING (com.facebook.presto.execution.StageState.RUNNING)1 SCHEDULED (com.facebook.presto.execution.StageState.SCHEDULED)1