Coverage Report

Created: 2022-08-24 06:40

/src/duckdb/src/execution/physical_plan/plan_prepare.cpp
Line
Count
Source (jump to first uncovered line)
1
#include "duckdb/execution/operator/scan/physical_dummy_scan.hpp"
2
#include "duckdb/execution/physical_plan_generator.hpp"
3
#include "duckdb/planner/operator/logical_prepare.hpp"
4
#include "duckdb/execution/operator/helper/physical_prepare.hpp"
5
6
namespace duckdb {
7
8
0
unique_ptr<PhysicalOperator> PhysicalPlanGenerator::CreatePlan(LogicalPrepare &op) {
9
0
  D_ASSERT(op.children.size() <= 1);
10
11
  // generate physical plan
12
0
  if (!op.children.empty()) {
13
0
    auto plan = CreatePlan(*op.children[0]);
14
0
    op.prepared->types = plan->types;
15
0
    op.prepared->plan = move(plan);
16
0
  }
17
18
0
  return make_unique<PhysicalPrepare>(op.name, move(op.prepared), op.estimated_cardinality);
19
0
}
20
21
} // namespace duckdb