Skip to content
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

Merged
merged 6 commits into from
Sep 18, 2023
Merged

support for mirror if not exists #387

merged 6 commits into from
Sep 18, 2023

Conversation

Amogh-Bharadwaj
Copy link
Contributor

No description provided.

@Amogh-Bharadwaj Amogh-Bharadwaj force-pushed the mirror-if-not branch 2 times, most recently from 09f2069 to ee31878 Compare September 15, 2023 15:25
@@ -199,79 +199,134 @@ impl NexusBackend {
"OK", None,
))])
}
PeerDDL::CreateMirrorForCDC { flow_job } => {
PeerDDL::CreateMirrorForCDC {
Copy link
Contributor

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.

@@ -32,11 +32,11 @@ use pgwire::{
tokio::process_socket,
};
use pt::{
flow_model::QRepFlowJob,
flow_model::{FlowJob, QRepFlowJob},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [clippy] reported by reviewdog 🐶

warning: unused import: `FlowJob`
  --> server/src/main.rs:35:18
   |
35 |     flow_model::{FlowJob, QRepFlowJob},
   |                  ^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

@@ -136,7 +138,10 @@ impl StatementAnalyzer for PeerDDLAnalyzer {
if_not_exists: *if_not_exists,
}))
}
Statement::CreateMirror { create_mirror } => {
Statement::CreateMirror {
if_not_exists,
Copy link
Contributor

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

@iskakaushik iskakaushik merged commit 2d024df into main Sep 18, 2023
22 checks passed
@serprex serprex deleted the mirror-if-not branch July 19, 2024 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants