1 | #include "duckdb/planner/operator/logical_cross_product.hpp" |
---|---|
2 | |
3 | using namespace duckdb; |
4 | using namespace std; |
5 | |
6 | LogicalCrossProduct::LogicalCrossProduct() : LogicalOperator(LogicalOperatorType::CROSS_PRODUCT) { |
7 | } |
8 | |
9 | vector<ColumnBinding> LogicalCrossProduct::GetColumnBindings() { |
10 | auto left_bindings = children[0]->GetColumnBindings(); |
11 | auto right_bindings = children[1]->GetColumnBindings(); |
12 | left_bindings.insert(left_bindings.end(), right_bindings.begin(), right_bindings.end()); |
13 | return left_bindings; |
14 | } |
15 | |
16 | void LogicalCrossProduct::ResolveTypes() { |
17 | types.insert(types.end(), children[0]->types.begin(), children[0]->types.end()); |
18 | types.insert(types.end(), children[1]->types.begin(), children[1]->types.end()); |
19 | } |
20 |