功能
存储每个分区的
tindex_id 到主表 tindex_id 的映射。对于分区表,在解析 Raft log 时可以通过分区的 tindex_id 找到对应主表的 tindex_id,进而通过查询 sys.logservice_dd_tables 表获得解析 Raft log 所需的表结构。支持版本
适用于 TDSQL Boundless V21.2.0 及以上版本。
字段说明
字段名 | 类型 | 描述 |
sid | bigint unsigned | 用于标识 logservice 的编号。 |
tindex_id | int unsigned | 标识每个分区的 ID。 |
parent_tindex_id | int unsigned | 当前分区对应主表的 tindex id。 |
示例
tdsql> DESC sys.logservice_dd_partitions;+------------------+-----------------+------+-----+---------+-------+| Field | Type | Null | Key | Default | Extra |+------------------+-----------------+------+-----+---------+-------+| sid | bigint unsigned | NO | PRI | NULL | || tindex_id | int unsigned | NO | PRI | NULL | || parent_tindex_id | int unsigned | NO | | NULL | |+------------------+-----------------+------+-----+---------+-------+tdsql> SELECT * FROM sys.logservice_dd_partitions;+-------------------+-----------+------------------+| sid | tindex_id | parent_tindex_id |+-------------------+-----------+------------------+| 29475711576178806 | 10035 | 10034 || 29475711576178806 | 10036 | 10034 || 29475711576178806 | 10037 | 10034 || 29475711576178806 | 10038 | 10034 |+-------------------+-----------+------------------+