use of com.facebook.presto.sql.planner.plan.TableWriterNode.InsertReference in project presto by prestodb.
the class LogicalPlanner method createInsertPlan.
private RelationPlan createInsertPlan(Analysis analysis, Insert insertStatement) {
Analysis.Insert insertAnalysis = analysis.getInsert().get();
TableHandle tableHandle = insertAnalysis.getTarget();
List<ColumnHandle> columnHandles = insertAnalysis.getColumns();
WriterTarget target = new InsertReference(tableHandle, metadata.getTableMetadata(session, tableHandle).getTable());
return buildInternalInsertPlan(tableHandle, columnHandles, insertStatement.getQuery(), analysis, target);
}
Aggregations