-
Notifications
You must be signed in to change notification settings - Fork 598
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
refactor(over window): use new table.iter_with_prefix
in streaming OverWindow
#12872
Conversation
Signed-off-by: Richard Chien <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #12872 +/- ##
==========================================
- Coverage 69.15% 69.15% -0.01%
==========================================
Files 1489 1489
Lines 245901 245879 -22
==========================================
- Hits 170052 170031 -21
+ Misses 75849 75848 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 4 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
LGTM!
Do we need some perf test for this PR? IIRC, after using state table sub_range
interface, over window will scan less items.
Actually we don't have a good benchmark query specifically for OverWindow yet. I'll run nexmark |
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.
LGTM, we can bench it after using the reverse iterator later.
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
After #12364 we now have a new and handy
StateTable::iter_with_prefix
method to iterate a given range within a pk prefix. This PR utilize it to simplifyOverPartition
. Fixes #12583.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.