Skip to content

Commit

Permalink
Create plan
Browse files Browse the repository at this point in the history
  • Loading branch information
Dtenwolde committed Feb 26, 2024
1 parent d94ab61 commit a46ff6e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions duckpgq/src/duckpgq/operators/path_finding_operator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ namespace duckdb {
unique_ptr<PhysicalOperator>
PathFindingOperator::CreatePlan(ClientContext &,
duckdb::PhysicalPlanGenerator &generator) {
// D_ASSERT(children.size() == 2);
// auto left = generator.CreatePlan(std::move(children[0]));
// auto right = generator.CreatePlan(std::move(children[1]));
//
// auto result =
// duckdb::make_uniq_base<duckdb::PhysicalOperator, PhysicalPathFinding>(*this);
// result->children.emplace_back(std::move(result));
// return result;
D_ASSERT(children.size() == 2);
auto left = generator.CreatePlan(std::move(children[0]));
auto right = generator.CreatePlan(std::move(children[1]));
return make_uniq<PhysicalPathFinding>(*this, std::move(left), std::move(right));
}
vector<ColumnBinding> PathFindingOperator::GetColumnBindings() {
return LogicalOperator::GetColumnBindings();
}
} // namespace duckdb

0 comments on commit a46ff6e

Please sign in to comment.