-
Notifications
You must be signed in to change notification settings - Fork 591
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(common): move some over window utils to common
#14204
Conversation
Signed-off-by: Richard Chien <[email protected]>
Signed-off-by: Richard Chien <[email protected]>
Signed-off-by: Richard Chien <[email protected]>
Signed-off-by: Richard Chien <[email protected]>
Signed-off-by: Richard Chien <[email protected]>
Where can they be reused? |
Idk, but
|
It would be better to be put in a separate crate |
Which one do you mean? This PR actually moves three different things to |
Signed-off-by: Richard Chien <[email protected]>
I mean I don't want to the I think the common crate is for things that are widely used in our system (and it's specialized for our system, e.g., types, arrays, chunks). How do you think?> |
I'm emphasizing organizing code in "crates", not "modules" 🤪 |
You're right. So we'd better separate many of the modules in |
Yes, that's what in my head. Although I don't think it makes much difference for the |
Signed-off-by: Richard Chien <[email protected]>
Signed-off-by: Richard Chien <[email protected]>
Signed-off-by: Richard Chien <[email protected]>
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.
Rest LGTM.
@@ -0,0 +1,21 @@ | |||
[package] | |||
name = "delta_btree_map" |
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.
As our convention, the name shall be risingwave_delta_btree_map
.
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
We had some handy utils and helper types in
over_window
module before, includingKeyWithSentinel
(renamed toSentinelled
),EstimatedBTreeMap
andDeltaBTreeMap
. This PR moves:Sentinelled
tocommon/types
;EstimatedBTreeMap
tocommon/estimate_size
;DeltaBTreeMap
toutils/delta_btree_map
.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.