-
Notifications
You must be signed in to change notification settings - Fork 590
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: minor refactor on fragment graph building #14560
refactor: minor refactor on fragment graph building #14560
Conversation
Current dependencies on/for this PR: This stack of pull requests is managed by Graphite. |
b4d664b
to
d6a095f
Compare
d6a095f
to
694ebb9
Compare
de2e161
to
b673a45
Compare
694ebb9
to
de9e090
Compare
b673a45
to
e5eff60
Compare
de9e090
to
63f32da
Compare
e5eff60
to
98ab255
Compare
63f32da
to
faded54
Compare
faded54
to
4f89a84
Compare
4f89a84
to
b440bc0
Compare
b440bc0
to
8aedab6
Compare
proto/stream_plan.proto
Outdated
repeated int32 upstream_column_ids = 3; | ||
reserved "upstream_column_ids"; | ||
reserved 3; |
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.
Since it was never used (so there was never a message persisted with #3), can we directly remove the field?
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.
Sounds good! Can you do it for me?
self.get_table() | ||
.unwrap() | ||
.distribution_key | ||
.iter() | ||
.map(|i| *i as u32) | ||
.collect() |
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.
We should really have a trait converting our types from and into prost types. 😄
/// For shared CDC table on source, its `vec![]`, since the upstream source's output schema is fixed. | ||
upstream_table_columns: HashMap<TableId, Vec<i32>>, |
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 does the i32
mean here
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
upstream_column_ids
forCdcFilterNode
. Because CDC source's schema is fixed.CompleteStreamFragmentGraph::build_helper
shorter.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.