Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cypher/execution_plan/ops/op_expand_all.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class ExpandAll : public OpBase {

bool _CheckToSkipEdge(RTContext *ctx) const {
return eit_->IsValid() &&
(pattern_graph_->VisitedEdges().Contains(*eit_) || _CheckToSkipEdgeFilter(ctx) ||
(_CheckToSkipEdgeFilter(ctx) ||
(expand_into_ && eit_->GetNbr(expand_direction_) != neighbor_->PullVid()));
}

Expand Down
8 changes: 6 additions & 2 deletions test/test_query.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,15 @@ class TestQuery : public TuGraphTest {
parser::LcypherParser parser(&tokens);
parser.addErrorListener(&parser::CypherErrorListener::INSTANCE);
parser::CypherBaseVisitor visitor(ctx_.get(), parser.oC_Cypher());
UT_LOG() << "-----CLAUSE TO STRING-----";
for (const auto &sql_query : visitor.GetQuery()) {
UT_LOG() << sql_query.ToString();
}
cypher::ExecutionPlan execution_plan;
execution_plan.Build(visitor.GetQuery(), visitor.CommandType(), ctx_.get());
execution_plan.Validate(ctx_.get());
execution_plan.DumpGraph();
execution_plan.DumpPlan(0, false);
UT_LOG() << execution_plan.DumpGraph();
UT_LOG() << execution_plan.DumpPlan(0, false);
execution_plan.Execute(ctx_.get());
result = ctx_->result_->Dump(false);
UT_LOG() << "-----result-----";
Expand Down