-
Notifications
You must be signed in to change notification settings - Fork 600
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: add state for source manager #3170
Conversation
Signed-off-by: Peng Chen <[email protected]>
Signed-off-by: Peng Chen <[email protected]>
Signed-off-by: Peng Chen <[email protected]>
Signed-off-by: Peng Chen <[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.
source part lgtm
Signed-off-by: tabVersion <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #3170 +/- ##
==========================================
- Coverage 73.55% 73.52% -0.04%
==========================================
Files 736 736
Lines 101051 101206 +155
==========================================
+ Hits 74326 74409 +83
- Misses 26725 26797 +72
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
@@ -623,9 +612,32 @@ where | |||
/// Dropping materialized view is done by barrier manager. Check | |||
/// [`Command::DropMaterializedView`] for details. | |||
pub async fn drop_materialized_view(&self, table_id: &TableId) -> Result<()> { | |||
let table_fragments = self |
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.
Can we get source_fragments
directly from a new interface inside FragmentManager? 🤔
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.
It doesn't seem to work, the table fragments are passed in as external parameters when creating materialized view, fetch_source_fragments
is already the maximum level of abstraction
self.barrier_manager | ||
.run_command(Command::DropMaterializedView(*table_id)) | ||
.await?; | ||
|
||
let mut actor_ids = HashSet::new(); |
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.
Ditto.
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.
Using Default::default here would make it impossible to derive the type
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.
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.
Signed-off-by: Peng Chen <[email protected]>
What's changed and what's your intention?
PLEASE DO NOT LEAVE THIS EMPTY !!!
as title
Checklist
./risedev check
(or alias,./risedev c
)Refer to a related PR or issue link (optional)