Search in sources :

Example 1 with TestingWriterTarget

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

the class TestVerifyNoOriginalExpression method testTableFinish.

@Test
public void testTableFinish() {
    TableFinishNode tableFinishNode = new TableFinishNode(Optional.empty(), new PlanNodeId("1"), valuesNode, Optional.of(new TestingWriterTarget()), VARIABLE_REFERENCE_EXPRESSION, Optional.empty(), Optional.empty());
    testValidation(tableFinishNode);
}
Also used : PlanNodeId(com.facebook.presto.spi.plan.PlanNodeId) TableFinishNode(com.facebook.presto.sql.planner.plan.TableFinishNode) TestingWriterTarget(com.facebook.presto.sql.planner.TestingWriterTarget) BasePlanTest(com.facebook.presto.sql.planner.assertions.BasePlanTest) Test(org.testng.annotations.Test)

Aggregations

PlanNodeId (com.facebook.presto.spi.plan.PlanNodeId)1 TestingWriterTarget (com.facebook.presto.sql.planner.TestingWriterTarget)1 BasePlanTest (com.facebook.presto.sql.planner.assertions.BasePlanTest)1 TableFinishNode (com.facebook.presto.sql.planner.plan.TableFinishNode)1 Test (org.testng.annotations.Test)1