Skip to content

Commit

Permalink
remove check for duplicate dest
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed Jan 22, 2024
1 parent 8c5bb09 commit f92f4b3
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions nexus/server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,6 @@ impl NexusBackend {
let table_mappings_count = flow_job.table_mappings.len();
if table_mappings_count > 1 {
let mut sources = HashSet::with_capacity(table_mappings_count);
let mut destinations = HashSet::with_capacity(table_mappings_count);
for tm in flow_job.table_mappings.iter() {
if !sources.insert(tm.source_table_identifier.as_str()) {
return Err(PgWireError::ApiError(
Expand All @@ -427,15 +426,6 @@ impl NexusBackend {
.into(),
));
}
if !destinations.insert(tm.destination_table_identifier.as_str()) {
return Err(PgWireError::ApiError(
format!(
"Duplicate destination table identifier {}",
tm.destination_table_identifier
)
.into(),
));
}
}
}

Expand Down

0 comments on commit f92f4b3

Please sign in to comment.