1#include "duckdb/planner/operator/logical_unconditional_join.hpp"
2
3namespace duckdb {
4
5LogicalUnconditionalJoin::LogicalUnconditionalJoin(LogicalOperatorType logical_type, unique_ptr<LogicalOperator> left,
6 unique_ptr<LogicalOperator> right)
7 : LogicalOperator(logical_type) {
8 D_ASSERT(left);
9 D_ASSERT(right);
10 children.push_back(x: std::move(left));
11 children.push_back(x: std::move(right));
12}
13
14vector<ColumnBinding> LogicalUnconditionalJoin::GetColumnBindings() {
15 auto left_bindings = children[0]->GetColumnBindings();
16 auto right_bindings = children[1]->GetColumnBindings();
17 left_bindings.insert(position: left_bindings.end(), first: right_bindings.begin(), last: right_bindings.end());
18 return left_bindings;
19}
20
21void LogicalUnconditionalJoin::ResolveTypes() {
22 types.insert(position: types.end(), first: children[0]->types.begin(), last: children[0]->types.end());
23 types.insert(position: types.end(), first: children[1]->types.begin(), last: children[1]->types.end());
24}
25
26} // namespace duckdb
27