1#include "duckdb/planner/operator/logical_projection.hpp"
2
3using namespace duckdb;
4using namespace std;
5
6LogicalProjection::LogicalProjection(idx_t table_index, vector<unique_ptr<Expression>> select_list)
7 : LogicalOperator(LogicalOperatorType::PROJECTION, move(select_list)), table_index(table_index) {
8}
9
10vector<ColumnBinding> LogicalProjection::GetColumnBindings() {
11 return GenerateColumnBindings(table_index, expressions.size());
12}
13
14void LogicalProjection::ResolveTypes() {
15 for (auto &expr : expressions) {
16 types.push_back(expr->return_type);
17 }
18}
19