-
Notifications
You must be signed in to change notification settings - Fork 599
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(meta): generalize replace table to replace job #18935
Conversation
7ee40ee
to
f74b951
Compare
899a05f
to
7326f9d
Compare
f74b951
to
9c3cea6
Compare
7326f9d
to
2bf03cd
Compare
9c3cea6
to
a7949b2
Compare
2bf03cd
to
06bd105
Compare
a7949b2
to
975cc21
Compare
90d1fab
to
1c9feb2
Compare
d43372e
to
9bf7633
Compare
f33a42a
to
d43598b
Compare
9bf7633
to
c117687
Compare
d43598b
to
0012e27
Compare
c117687
to
9be32c1
Compare
0012e27
to
613044f
Compare
4acdc3b
to
42bb88c
Compare
42bb88c
to
7e3529d
Compare
dcf9e2b
to
5b06546
Compare
/// - For source, it should have one `Source` fragment. | ||
/// | ||
/// In other words, it's the `MView` fragment if it exists, otherwise it's the `Source` fragment. | ||
pub async fn get_root_fragments( |
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.
The logic is not related whether it is "upstream", so renamed.
} | ||
|
||
/// Get the downstream fragments connected to the specified job. | ||
pub async fn get_downstream_fragments( |
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.
The name Chain
fragments is outdated. Just call it downstream_fragments
. I guess there's no confusion.
(fragment_id, strategy) | ||
}) | ||
.collect(); | ||
let (root_fragment, actors) = self.get_root_fragment(job_id).await?; |
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.
Refactored from mview_fragment -> root_fragment, to make it more general.
1d9faeb
to
2a4081e
Compare
2a4081e
to
016e23b
Compare
Merge activity
|
016e23b
to
a373c13
Compare
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
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
Style improvements (e.g., extract logic into methods) to make the code easier to understand and able to generalize to replace job.
prepare for #19063
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.