1#include "duckdb/planner/operator/logical_unnest.hpp"
2
3using namespace duckdb;
4using namespace std;
5
6vector<ColumnBinding> LogicalUnnest::GetColumnBindings() {
7 auto child_bindings = children[0]->GetColumnBindings();
8 for (idx_t i = 0; i < expressions.size(); i++) {
9 child_bindings.push_back(ColumnBinding(unnest_index, i));
10 }
11 return child_bindings;
12}
13
14void LogicalUnnest::ResolveTypes() {
15 types.insert(types.end(), children[0]->types.begin(), children[0]->types.end());
16 for (auto &expr : expressions) {
17 types.push_back(expr->return_type);
18 }
19}
20