Skip to content

Commit

Permalink
ignore check contain and add some comment
Browse files Browse the repository at this point in the history
  • Loading branch information
TCeason authored and drmingdrmer committed Jan 5, 2025
1 parent c07f0af commit 488ea62
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/query/storages/system/src/tables_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,7 @@ where TablesTable<WITH_HISTORY, WITHOUT_VIEW>: HistoryAware
}
} else if col_name == "name" {
if let Scalar::String(t_name) = scalar {
if !tables_names.contains(t_name) {
tables_names.insert(t_name.clone());
}
tables_names.insert(t_name.clone());
}
}
Ok(())
Expand Down Expand Up @@ -359,6 +357,7 @@ where TablesTable<WITH_HISTORY, WITHOUT_VIEW>: HistoryAware
tables_names.extend(new_table_names);
}
Err(err) => {
// swallow the errors related with mget tables
warn!("Failed to get tables: {}, {}", ctl.name(), err);
}
}
Expand Down Expand Up @@ -438,9 +437,7 @@ where TablesTable<WITH_HISTORY, WITHOUT_VIEW>: HistoryAware
{
Ok(tables) => {
for table in tables.into_iter().flatten() {
if !tables_names.contains(&table) {
tables_names.insert(table.clone());
}
tables_names.insert(table.clone());
}
}
Err(err) => {
Expand Down

0 comments on commit 488ea62

Please sign in to comment.