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