Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
andyfengHKU committed Jul 21, 2023
1 parent b6ed1f4 commit ed0a6bb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/optimizer/optimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace kuzu {
namespace optimizer {

void Optimizer::optimize(planner::LogicalPlan* plan) {
auto a = plan->toString();

// Factorization structure should be removed before further optimization can be applied.
auto removeFactorizationRewriter = RemoveFactorizationRewriter();
removeFactorizationRewriter.rewrite(plan);
Expand All @@ -22,14 +22,14 @@ void Optimizer::optimize(planner::LogicalPlan* plan) {

auto filterPushDownOptimizer = FilterPushDownOptimizer();
filterPushDownOptimizer.rewrite(plan);
a = plan->toString();

auto projectionPushDownOptimizer = ProjectionPushDownOptimizer();
projectionPushDownOptimizer.rewrite(plan);
a = plan->toString();

// HashJoinSIPOptimizer should be applied after optimizers that manipulate hash join.
auto hashJoinSIPOptimizer = HashJoinSIPOptimizer();
hashJoinSIPOptimizer.rewrite(plan);
a = plan->toString();

auto factorizationRewriter = FactorizationRewriter();
factorizationRewriter.rewrite(plan);

Expand Down
2 changes: 0 additions & 2 deletions src/planner/query_planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,6 @@ void QueryPlanner::planOptionalMatch(const QueryGraphCollection& queryGraphColle
auto plan = planJoins(queryGraphCollection, predicates);
leftPlan.setLastOperator(plan->getLastOperator());
appendAccumulate(AccumulateType::OPTIONAL, leftPlan);
auto s = leftPlan.toString();
auto b = 1;
return;
}
auto correlatedExpressions =
Expand Down
3 changes: 0 additions & 3 deletions test/test_files/tinysnb/subquery/exists.test
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

-CASE SubqueryExists


-LOG ExistSubqueryTest
-STATEMENT MATCH (a:person) WHERE EXISTS { MATCH (a)-[:knows]->(b:person) } RETURN COUNT(*)
-ENUMERATE
Expand Down Expand Up @@ -87,5 +86,3 @@ Bob
Carol
Dan
Elizabeth


0 comments on commit ed0a6bb

Please sign in to comment.