-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add optimizer comments #3910
Merged
Merged
add optimizer comments #3910
Changes from 31 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
ac95393
small format
czpmango 6712bd7
add comments for EliminateRowCollectRule
czpmango 24da62b
add comments for MergeGetNbrsAndDedupRule
czpmango 56659c0
add comments for MergeGetNbrsAndDedupRule
czpmango 4495ffb
add comments for MergeGetNbrsAndProjectRule
czpmango 71f0b66
add comments for MergeGetVerticesAndDedupRule
czpmango d6d6889
add comments for MergeGetVerticesAndProjectRule
czpmango 1777bf4
add comments for PushFilterDownAggregateRule
czpmango 965a797
add comments for PushFilterDownGetNbrsRule
czpmango e064e82
add comments for PushFilterDownLeftJoinRule
czpmango 60b8857
add comments for PushFilterDownProjectRule
czpmango e99c283
add comments for PushFilterDownScanVerticesRule
czpmango 3874a67
add comments for PushFilterDownGetNeighborsRule
czpmango 9aa183b
add comments for PushLimitDownGetNeighborsRule
czpmango 8a2d540
add comments for PushLimitDownIndexScanRule
czpmango d92dd50
tmp
czpmango 023a0f2
add comments for PushLimitDownScanAppendVerticesRule
czpmango 4a062cb
add comments for PushLimitDownScanEdgesAppendVerticesRule
czpmango e0a53eb
PushStepLimitDownGetNeighborsRule
czpmango 2635b8c
add comments for PushStepSampleDownGetNeighborsRule
czpmango 14bcf07
add comments for TopNrule
czpmango d92489c
add comments for PushTopNDownIndexScanRule
czpmango 5c71fe9
add comments for PushVFilterDownScanVerticesRule
czpmango 58a579d
add comments for RemoveNoopProjectRule
czpmango 4ff8ab7
small comments
czpmango a15abd9
add comments for getEdgesTransformRule
czpmango b7e1b43
add comments for IndexScanRule
czpmango 099a7c4
small comments
czpmango 54500b4
add comments for memo operations
czpmango dc3a40f
small delete
czpmango e6cab7a
format
czpmango 13a081a
Merge branch 'master' into opt-comments
yixinglu d1443b1
Merge branch 'master' into opt-comments
Sophie-Xie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,8 +48,10 @@ class OptContext final : private boost::noncopyable, private cpp::NonMovable { | |
const OptGroupNode *findOptGroupNodeByPlanNodeId(int64_t planNodeId) const; | ||
|
||
private: | ||
// A global flag to record whether this iteration caused a change to the plan | ||
bool changed_{true}; | ||
graph::QueryContext *qctx_{nullptr}; | ||
// Memo memory management in the Optimizer phase | ||
Aiee marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's this? |
||
std::unique_ptr<ObjectPool> objPool_; | ||
std::unordered_map<int64_t, const OptGroupNode *> planNodeToOptGroupNodeMap_; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is memo?