Skip to content

Commit

Permalink
5
Browse files Browse the repository at this point in the history
  • Loading branch information
morningman committed Aug 30, 2024
1 parent cdf892d commit 282d7c3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ Status SchemaCatalogMetaCacheStatsScanner::_get_meta_cache_from_fe() {

Status status(Status::create(result.status));
if (!status.ok()) {
LOG(WARNING) << "fetch catalog meta cache stats from FE(" << _fe_addr.hostname << ") failed, errmsg=" << status;
LOG(WARNING) << "fetch catalog meta cache stats from FE(" << _fe_addr.hostname
<< ") failed, errmsg=" << status;
return status;
}
std::vector<TRow> result_data = result.data_batch;
Expand Down Expand Up @@ -103,7 +104,7 @@ Status SchemaCatalogMetaCacheStatsScanner::_get_meta_cache_from_fe() {
}

Status SchemaCatalogMetaCacheStatsScanner::get_next_block_internal(vectorized::Block* block,
bool* eos) {
bool* eos) {
if (!_is_init) {
return Status::InternalError("Used before initialized.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,5 +178,9 @@ suite("test_external_catalog_hive", "p0,external,hive,external_docker,external_d
"""
exception "Failed to init access controller: bound must be positive"
}

// test catalog_meta_cache_statistics
sql """select * from information_schema.catalog_meta_cache_statistics;"""
sql """select * from information_schema.catalog_meta_cache_statistics where catalog_name="${catalog_name}";"""
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ suite("test_iceberg_table_stats", "p0,external,doris,external_docker,external_do
assert_stats("sample_mor_orc", "1000")
assert_stats("sample_mor_parquet", "1000")

// test catalog_meta_cache_statistics
sql """select * from information_schema.catalog_meta_cache_statistics;"""
sql """select * from information_schema.catalog_meta_cache_statistics where catalog_name="${catalog_name}";"""

} finally {
}
}
Expand Down

0 comments on commit 282d7c3

Please sign in to comment.