1 | #include "duckdb/planner/operator/logical_window.hpp" |
---|---|
2 | |
3 | using namespace duckdb; |
4 | using namespace std; |
5 | |
6 | vector<ColumnBinding> LogicalWindow::GetColumnBindings() { |
7 | auto child_bindings = children[0]->GetColumnBindings(); |
8 | for (idx_t i = 0; i < expressions.size(); i++) { |
9 | child_bindings.push_back(ColumnBinding(window_index, i)); |
10 | } |
11 | return child_bindings; |
12 | } |
13 | |
14 | void LogicalWindow::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 |