Skip to main content

catalog_meta_cache_statistics

Overview

View the metadata cache information of the External Catalog in the currently connected FE.

Database

information_schema

Table Information

One row represents one cache entry on one FE for one external catalog.

Column NameTypeDescription
FE_HOSTtextFE host that reports the stats
CATALOG_NAMEtextCatalog name
ENGINE_NAMEtextMeta cache engine name, such as hive, iceberg, paimon
ENTRY_NAMEtextCache entry name inside the engine, such as schema, file, manifest
EFFECTIVE_ENABLEDbooleanWhether the cache is effectively enabled after evaluating enable / ttl-second / capacity
CONFIG_ENABLEDbooleanRaw enable flag from the cache config
AUTO_REFRESHbooleanWhether async refresh-after-write is enabled for this entry
TTL_SECONDbigintTTL in seconds. 0 means disabled; -1 means no expiration
CAPACITYbigintMax entry count
ESTIMATED_SIZEbigintEstimated current cache size
REQUEST_COUNTbigintTotal requests
HIT_COUNTbigintCache hits
MISS_COUNTbigintCache misses
HIT_RATEdoubleHit rate
LOAD_SUCCESS_COUNTbigintSuccessful loads
LOAD_FAILURE_COUNTbigintFailed loads
TOTAL_LOAD_TIME_MSbigintTotal load time in milliseconds
AVG_LOAD_PENALTY_MSdoubleAverage load time in milliseconds
EVICTION_COUNTbigintEvicted entries
INVALIDATE_COUNTbigintExplicit invalidations
LAST_LOAD_SUCCESS_TIMEtextLast successful load time
LAST_LOAD_FAILURE_TIMEtextLast failed load time
LAST_ERRORtextLatest load error message

Usage Example

SELECT catalog_name, engine_name, entry_name,
effective_enabled, ttl_second, capacity,
estimated_size, hit_rate, last_error
FROM information_schema.catalog_meta_cache_statistics
ORDER BY catalog_name, engine_name, entry_name;

Typical usage:

  • Use ENGINE_NAME + ENTRY_NAME to identify one logical cache entry.
  • Use EFFECTIVE_ENABLED, TTL_SECOND, and CAPACITY to confirm the applied cache policy.
  • Use HIT_RATE, ESTIMATED_SIZE, LOAD_FAILURE_COUNT, and LAST_ERROR to diagnose behavior.