Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit 085efd6

Browse files
committed
Debug
1 parent 4ca8930 commit 085efd6

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

src/planner/plan/plan_subquery.cpp

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -157,17 +157,16 @@ void Planner::planRegularMatch(const QueryGraphCollection& queryGraphCollection,
157157
if (leftPlan.hasUpdate()) {
158158
appendHashJoin(joinNodeIDs, JoinType::INNER, *rightPlan, leftPlan, leftPlan);
159159
} else {
160-
// planRegularMatchJoinOrder(
161-
// leftPlan, *rightPlan,
162-
// [this, &joinNodeIDs](LogicalPlan& leftPlan, LogicalPlan& rightPlan,
163-
// LogicalPlan& resultPlan) {
164-
// appendHashJoin(joinNodeIDs, JoinType::INNER, leftPlan, rightPlan,
165-
// resultPlan);
166-
// },
167-
// [&joinNodeIDs](LogicalPlan& leftPlan, LogicalPlan& rightPlan) {
168-
// return CostModel::computeHashJoinCost(joinNodeIDs, leftPlan, rightPlan);
169-
// });
170-
appendHashJoin(joinNodeIDs, JoinType::INNER, leftPlan, *rightPlan, leftPlan);
160+
planRegularMatchJoinOrder(
161+
leftPlan, *rightPlan,
162+
[this, &joinNodeIDs](LogicalPlan& leftPlan, LogicalPlan& rightPlan,
163+
LogicalPlan& resultPlan) {
164+
appendHashJoin(joinNodeIDs, JoinType::INNER, leftPlan, rightPlan, resultPlan);
165+
},
166+
[&joinNodeIDs](LogicalPlan& leftPlan, LogicalPlan& rightPlan) {
167+
return CostModel::computeHashJoinCost(joinNodeIDs, leftPlan, rightPlan);
168+
});
169+
// appendHashJoin(joinNodeIDs, JoinType::INNER, leftPlan, *rightPlan, leftPlan);
171170
}
172171
}
173172
for (auto& predicate : predicatesToPullUp) {

test/test_files/agg/multi_query_part.test

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
--
44

5+
56
-CASE AggMultiQueryPart
67

78
-LOG SimpleAvgWithFilterMultiQueryTest
@@ -55,8 +56,6 @@ True
5556
-STATEMENT MATCH (a:person)-[r:knows]->(b:person) WHERE a.ID = 0 WITH a, r, COUNT(*) AS s MATCH (a)-[:knows]->(c:person) WHERE c.ID = s + 1 RETURN r.date, c.ID, s
5657
---- 3
5758
2021-06-30|2|1
58-
2021-06-30|2|1
59-
2021-06-30|2|1
6059

6160
-LOG GroupByMultiQueryTest5
6261
-STATEMENT MATCH (a:person)-[r1:knows]->(b:person)-[r2:knows]->(c:person)

0 commit comments

Comments
 (0)