Current section
Files
Jump to
Current section
Files
c_src/duckdb/src/execution/physical_plan/plan_export.cpp
#include "duckdb/execution/physical_plan_generator.hpp"
#include "duckdb/execution/operator/persistent/physical_export.hpp"
#include "duckdb/planner/operator/logical_export.hpp"
namespace duckdb {
unique_ptr<PhysicalOperator> PhysicalPlanGenerator::CreatePlan(LogicalExport &op) {
auto export_node = make_unique<PhysicalExport>(op.types, op.function, move(op.copy_info), op.estimated_cardinality,
op.exported_tables);
// plan the underlying copy statements, if any
if (!op.children.empty()) {
auto plan = CreatePlan(*op.children[0]);
export_node->children.push_back(move(plan));
}
return move(export_node);
}
} // namespace duckdb