-
Notifications
You must be signed in to change notification settings - Fork 97
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
support for mirror if not exists #387
Conversation
09f2069
to
ee31878
Compare
@@ -199,79 +199,134 @@ impl NexusBackend { | |||
"OK", None, | |||
))]) | |||
} | |||
PeerDDL::CreateMirrorForCDC { flow_job } => { | |||
PeerDDL::CreateMirrorForCDC { |
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 refactor handling this branch to its own function? It seems pretty complex now, can you refactor to make it readable.
nexus/server/src/main.rs
Outdated
@@ -32,11 +32,11 @@ use pgwire::{ | |||
tokio::process_socket, | |||
}; | |||
use pt::{ | |||
flow_model::QRepFlowJob, | |||
flow_model::{FlowJob, QRepFlowJob}, |
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.
warning: unused import: `FlowJob`
--> server/src/main.rs:35:18
|
35 | flow_model::{FlowJob, QRepFlowJob},
| ^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
71c7ce5
to
09fa9c6
Compare
@@ -136,7 +138,10 @@ impl StatementAnalyzer for PeerDDLAnalyzer { | |||
if_not_exists: *if_not_exists, | |||
})) | |||
} | |||
Statement::CreateMirror { create_mirror } => { | |||
Statement::CreateMirror { | |||
if_not_exists, |
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.
🚫 [clippy] reported by reviewdog 🐶
error[E0026]: variant `sqlparser::ast::Statement::CreateMirror` does not have a field named `if_not_exists`
--> analyzer/src/lib.rs:142:17
|
142 | if_not_exists,
| ^^^^^^^^^^^^^ variant `sqlparser::ast::Statement::CreateMirror` does not have this field
e5f7c73
to
b5a4bad
Compare
No description provided.