diff --git a/src/graph/optimizer/rule/OptimizeLeftJoinPredicateRule.cpp b/src/graph/optimizer/rule/OptimizeLeftJoinPredicateRule.cpp index 8cee7eca55b..d9af805ae24 100644 --- a/src/graph/optimizer/rule/OptimizeLeftJoinPredicateRule.cpp +++ b/src/graph/optimizer/rule/OptimizeLeftJoinPredicateRule.cpp @@ -151,12 +151,6 @@ StatusOr OptimizeLeftJoinPredicateRule::transform( newLeftJoin->setLeftVar(leftJoin->leftInputVar()); newLeftJoin->setRightVar(newProject->outputVar()); newLeftJoin->setOutputVar(leftJoin->outputVar()); - // LOG the col names of newLeftJoin - auto& newLeftJoinColNames = newLeftJoin->colNames(); - LOG(ERROR) << "newLeftJoinColNames.size(): " << newLeftJoinColNames.size(); - for (auto& colName : newLeftJoinColNames) { - LOG(ERROR) << "colName: " << colName; - } auto* newLeftJoinGroupNode = OptGroupNode::create(octx, newLeftJoin, leftJoinGroup); newLeftJoinGroupNode->dependsOn(leftJoinGroupNode->dependencies()[0]); newLeftJoinGroupNode->dependsOn(newProjectGroup); diff --git a/src/graph/optimizer/rule/OptimizeLeftJoinPredicateRule.h b/src/graph/optimizer/rule/OptimizeLeftJoinPredicateRule.h index 7792a98b14d..ef27924af2e 100644 --- a/src/graph/optimizer/rule/OptimizeLeftJoinPredicateRule.h +++ b/src/graph/optimizer/rule/OptimizeLeftJoinPredicateRule.h @@ -9,24 +9,24 @@ namespace nebula { namespace opt { -/* Before: - * HashLeftJoin({id(v)}, {id(v)}) - * / \ - * ... Project - * / \ - * AppendVertices(v) AppendVertices(v) - * / \ - * ... Traverse(e) - * - * After: - * HashLeftJoin({id(v)}, {$-.v}) - * / \ - * ... Project(..., none_direct_dst(e) AS v) - * / \ - * AppendVertices(v) Traverse(e) - * / - * ... - */ +// Before: +// HashLeftJoin({id(v)}, {id(v)}) +// | | +// ... Project +// | | +// AppendVertices(v) AppendVertices(v) +// | | +// ... Traverse(e) +// +// After: +// HashLeftJoin({id(v)}, {$-.v}) +// | | +// ... Project(..., none_direct_dst(e) AS v) +// | | +// AppendVertices(v) Traverse(e) +// | +// ... +// class OptimizeLeftJoinPredicateRule final : public OptRule { public: const Pattern &pattern() const override;