1#include "duckdb/execution/operator/scan/physical_column_data_scan.hpp"
2#include "duckdb/execution/physical_plan_generator.hpp"
3#include "duckdb/planner/operator/logical_column_data_get.hpp"
4
5namespace duckdb {
6
7unique_ptr<PhysicalOperator> PhysicalPlanGenerator::CreatePlan(LogicalColumnDataGet &op) {
8 D_ASSERT(op.children.size() == 0);
9 D_ASSERT(op.collection);
10
11 // create a PhysicalChunkScan pointing towards the owned collection
12 auto chunk_scan = make_uniq<PhysicalColumnDataScan>(args&: op.types, args: PhysicalOperatorType::COLUMN_DATA_SCAN,
13 args&: op.estimated_cardinality, args: std::move(op.collection));
14 return std::move(chunk_scan);
15}
16
17} // namespace duckdb
18