Coverage Report

Created: 2025-08-28 07:58

/src/duckdb/src/planner/operator/logical_window.cpp
Line
Count
Source (jump to first uncovered line)
1
#include "duckdb/planner/operator/logical_window.hpp"
2
3
#include "duckdb/main/config.hpp"
4
5
namespace duckdb {
6
7
106
vector<ColumnBinding> LogicalWindow::GetColumnBindings() {
8
106
  auto child_bindings = children[0]->GetColumnBindings();
9
265
  for (idx_t i = 0; i < expressions.size(); i++) {
10
159
    child_bindings.emplace_back(window_index, i);
11
159
  }
12
106
  return child_bindings;
13
106
}
14
15
46
void LogicalWindow::ResolveTypes() {
16
46
  types.insert(types.end(), children[0]->types.begin(), children[0]->types.end());
17
69
  for (auto &expr : expressions) {
18
69
    types.push_back(expr->return_type);
19
69
  }
20
46
}
21
22
0
vector<idx_t> LogicalWindow::GetTableIndex() const {
23
0
  return vector<idx_t> {window_index};
24
0
}
25
26
4
string LogicalWindow::GetName() const {
27
#ifdef DEBUG
28
  if (DBConfigOptions::debug_print_bindings) {
29
    return LogicalOperator::GetName() + StringUtil::Format(" #%llu", window_index);
30
  }
31
#endif
32
4
  return LogicalOperator::GetName();
33
4
}
34
35
} // namespace duckdb