-
Notifications
You must be signed in to change notification settings - Fork 597
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
feat(optimizer): support expr visitable for plan node #13587
Conversation
If I understand correctly, the developers should manually ensure that the implementation is identical to |
Yes. One is a mutable reference and the other one is an immutable reference. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #13587 +/- ##
==========================================
- Coverage 68.17% 68.12% -0.06%
==========================================
Files 1512 1513 +1
Lines 261145 261337 +192
==========================================
- Hits 178040 178025 -15
- Misses 83105 83312 +207
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
If we can visit the plan node to check whether we actually need to rewrite exprs we can save CPU cost.
Can you do that together and demonstrate how much improvement it provides? 👀
Since this feat is solely for that optimization purpose, I'd rather confirm it works before adding this part.
@xxchan Sure. It can reduce CPU from 2.2% to 0.1% for |
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Checklist
./risedev check
(or alias,./risedev c
)Documentation
Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.