-
Notifications
You must be signed in to change notification settings - Fork 525
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(frontend): implementation for create/drop sink handlers #3488
Conversation
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Codecov Report
@@ Coverage Diff @@
## main #3488 +/- ##
==========================================
+ Coverage 74.31% 74.35% +0.03%
==========================================
Files 773 775 +2
Lines 109868 110074 +206
==========================================
+ Hits 81647 81843 +196
- Misses 28221 28231 +10
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 |
@@ -34,6 +37,10 @@ pub struct SchemaCatalog { | |||
source_by_name: HashMap<String, SourceCatalog>, | |||
source_name_by_id: HashMap<SourceId, String>, | |||
|
|||
// TODO(nanderstabel): Can be replaced with a bijective map: https://crates.io/crates/bimap. |
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.
👍
@@ -84,7 +84,7 @@ pub fn handle_show_object(context: OptimizerContext, command: ShowObject) -> Res | |||
.iter_materialized_source() | |||
.map(|t| t.name.clone()) | |||
.collect(), | |||
ShowObject::Sink { _schema } => todo!(), | |||
ShowObject::Sink { schema: _ } => todo!(), |
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.
Returning an unimplemented error is preferred.
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.
Generally lgtm. Looking forward the meta side impl :)
uint32 schema_id = 2; | ||
uint32 database_id = 3; | ||
string name = 4; | ||
string mv_name = 5; |
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.
string mv_name = 5; | |
uint32 associated_table_id = 5; |
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.
Thank you for this suggestion, I will implement it in my next PR :)
I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.
What's changed and what's your intention?
Add handle for CREATE SINK and DROP SINK statements as well as test_utils.
Please explain IN DETAIL what the changes are in this PR and why they are needed:
Checklist
./risedev check
(or alias,./risedev c
)Documentation
If your pull request contains user-facing changes, please specify the types of the changes, and create a release note. Otherwise, please feel free to remove this section.
Types of user-facing changes
Please keep the types that apply to your changes, and remove those that do not apply.
Release note
Please create a release note for your changes. In the release note, focus on the impact on users, and mention the environment or conditions where the impact may occur.
support the following syntax
Refer to a related PR or issue link (optional)