SHOW DICTIONARY
显示有关字典对象的信息。
语法
SHOW DICTIONARY [ <dictionary_object_name> ]
参数
dictionary_object_name
: 字典对象的名称。
返回值
DictionaryId
: 每个字典对象的唯一 ID。DictionaryName
: 字典对象的名称。DbName
: 原始对象所属的数据库。dictionarySource
: 原始对象的名称。dictionaryKeys
: 字典对象的键列。dictionaryValues
: 字典对象的值列。state
: 字典对象的刷新状态。UNINITIALIZED
: 字典对象刚被创建,尚未刷新。REFRESHING
: 字典对象当前正在刷新。COMMITTING
: 数据已缓存在每个 BE 节点的字典对象中,并且正在执行一些最终任务,例如更新元数据。FINISHED
: 刷新成功并已结束。CANCELLED
: 刷新过程中发生错误,刷新已取消。 您需要根据ErrorMessage
中的错误信息修复问题,然后再次刷新字典对象。
lastSuccessRefreshTime
: 字典对象上次成功刷新的开始时间。lastSuccessFinishedTime
: 字典对象上次成功刷新的结束时间。nextSchedulableTime
: 下次自动刷新字典对象数据的时间。ErrorMessage
: 刷新字典对象失败时的错误消息。approximated dictionaryMemoryUsage (Bytes)
: 缓存到每个 BE 节点的字典对象的估计内存使用量。
示例
MySQL > SHOW DICTIONARY\G
*************************** 1. row ***************************
DictionaryId: 3
DictionaryName: dict_obj
DbName: example_db
dictionaryObject: dict
dictionaryKeys: [order_uuid]
dictionaryValues: [order_id_int]
status: FINISHED
lastSuccessRefreshTime: 2024-05-23 16:12:03
lastSuccessFinishedTime: 2024-05-23 16:12:12
nextSchedulableTime: disable auto schedule for refreshing
ErrorMessage:
approximated dictionaryMemoryUsage (Bytes): 172.26.82.208:8060 : 30
172.26.82.210:8060 : 30
172.26.82.209:8060 : 30
*************************** 2. row ***************************
DictionaryId: 4
DictionaryName: dimension_obj
DbName: example_db
dictionaryObject: ProductDimension
dictionaryKeys: [ProductKey]
dictionaryValues: [ProductName, Category, SubCategory, Brand, Color, Size]
status: FINISHED
lastSuccessRefreshTime: 2024-05-23 16:12:41
lastSuccessFinishedTime: 2024-05-23 16:12:42
nextSchedulableTime: disable auto schedule for refreshing
ErrorMessage:
approximated dictionaryMemoryUsage (Bytes): 172.26.82.208:8060 : 270
172.26.82.210:8060 : 270
172.26.82.209:8060 : 270
2 rows in set (0.00 sec)