系统版本 centos 7.5 内核 3.10.0-862.el7.x86_64
- 【TiDB 版本】:v3.0.8
- 【问题描述】: partition表中没有分区数据
请问一下是不是目前我的版本太低了?
系统版本 centos 7.5 内核 3.10.0-862.el7.x86_64
请问一下是不是目前我的版本太低了?
看了下应该是在 v3.0.11 版本后才能在 information_schema.partitions
中查看分区表元数据信息:
https://github.com/pingcap/tidb/issues/13905
1、查看分区表信息,需要查看的表名是 information_schema.PARTITIONS
,但是在 v 3.0.11
之前的版本中该数据字典无相关信息,相关的 pr 见:
https://github.com/pingcap/tidb/pull/14849
2、如果在 v3.0.11
前的版本想查看分区信息,可以评估下下面的方法:
TiDB API
,看下是否可以拿到分区相关的信息:
https://github.com/pingcap/tidb/blob/master/docs/tidb_http_api.md
show create table 或 explain select * from tab_partition 来获取相关信息