Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

Refactor join. #1263

Closed
wants to merge 13 commits into from
Closed

Refactor join. #1263

wants to merge 13 commits into from

Conversation

CPWstatic
Copy link
Contributor

No description provided.

@CPWstatic CPWstatic added the ready-for-testing PR: ready for the CI test label Jul 20, 2021
std::string MatchedResult::toString() const {
std::stringstream ss;
std::queue<const MatchedResult*> queue;
std::unordered_set<const MatchedResult*> visited;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that you can delete the visited variable.

std::string Pattern::toString() const {
std::stringstream ss;
std::queue<const Pattern*> queue;
std::unordered_set<const Pattern*> visited;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

const auto &pattern = this->pattern();
auto status = pattern.match(groupNode);
NG_RETURN_IF_ERROR(status);
auto matched = std::move(status).value();
if (!this->match(ctx, matched)) {
return Status::Error();
}
VLOG(1) << "Hit rule: " + this->toString()
<< " pattern: " << pattern.toString()
<< " subtree of plan: " << matched.toString();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you cleanup these debug logs?

@CPWstatic CPWstatic force-pushed the refactor_join branch 2 times, most recently from 984b603 to 6b574f2 Compare July 23, 2021 02:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants