Skip to content

Commit

Permalink
fix: show table names not complete from information_schema (#3417)
Browse files Browse the repository at this point in the history
  • Loading branch information
killme2008 authored Mar 1, 2024
1 parent 3cad9d9 commit c1a3706
Show file tree
Hide file tree
Showing 3 changed files with 303 additions and 279 deletions.
7 changes: 4 additions & 3 deletions src/catalog/src/kvbackend/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ use std::collections::BTreeSet;
use std::sync::{Arc, Weak};

use async_stream::try_stream;
use common_catalog::consts::{DEFAULT_SCHEMA_NAME, INFORMATION_SCHEMA_NAME, NUMBERS_TABLE_ID};
use common_catalog::consts::{
DEFAULT_CATALOG_NAME, DEFAULT_SCHEMA_NAME, INFORMATION_SCHEMA_NAME, NUMBERS_TABLE_ID,
};
use common_error::ext::BoxedError;
use common_meta::cache_invalidator::{CacheInvalidator, CacheInvalidatorRef, Context};
use common_meta::error::Result as MetaResult;
Expand Down Expand Up @@ -97,8 +99,7 @@ impl KvBackendCatalogManager {
catalog_manager: me.clone(),
catalog_cache: Cache::new(DEFAULT_CACHED_CATALOG),
information_schema_provider: Arc::new(InformationSchemaProvider::new(
// The catalog name is not used in system_catalog, so let it empty
String::default(),
DEFAULT_CATALOG_NAME.to_string(),
me.clone(),
)),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ show tables;
+---------------------------------------+
| Tables |
+---------------------------------------+
| build_info |
| character_sets |
| check_constraints |
| collation_character_set_applicability |
Expand All @@ -31,13 +32,15 @@ show tables;
| events |
| files |
| global_status |
| greptime_region_peers |
| key_column_usage |
| optimizer_trace |
| parameters |
| partitions |
| profiling |
| referential_constraints |
| routines |
| runtime_metrics |
| schema_privileges |
| schemata |
| session_status |
Expand Down
Loading

0 comments on commit c1a3706

Please sign in to comment.