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

Return all rules when execution plan is not stable #1085

Merged
merged 4 commits into from
Jul 1, 2021

Conversation

yixinglu
Copy link
Contributor

as title

@Aiee Aiee changed the title Rerun all rules when execution plan is not stable Return all rules when execution plan is not stable May 26, 2021
@@ -28,6 +28,16 @@ OptGroup *OptGroup::create(OptContext *ctx) {
return ctx->objPool()->add(new OptGroup(ctx));
}

void OptGroup::setUnexplored(const OptRule *rule) {
auto iter = std::find(exploredRules_.begin(), exploredRules_.end(), rule);
Copy link
Contributor

Choose a reason for hiding this comment

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

Here you can directly use std::erase+std::remove_if

@yixinglu yixinglu changed the title Return all rules when execution plan is not stable Rerun all rules when execution plan is not stable May 28, 2021
czpmango
czpmango previously approved these changes Jun 16, 2021
@CLAassistant
Copy link

CLAassistant commented Jun 17, 2021

CLA assistant check
All committers have signed the CLA.

@yixinglu yixinglu added the ready-for-testing PR: ready for the CI test label Jul 1, 2021
@Aiee Aiee changed the title Rerun all rules when execution plan is not stable Return all rules when execution plan is not stable Jul 1, 2021
Copy link
Contributor

@czpmango czpmango left a comment

Choose a reason for hiding this comment

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

LGTM.

@yixinglu yixinglu merged commit 764bcca into vesoft-inc:master Jul 1, 2021
@yixinglu yixinglu deleted the rerun-rules branch July 1, 2021 07:34
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

5 participants