更新时间:2022-09-30 GMT+08:00
SHOW SEGMENTS
命令功能
SHOW SEGMENTS命令是用来向用户展示CarbonData table的Segment。
命令格式
SHOW SEGMENTS FOR TABLE [db_name.]table_name LIMIT number_of_loads;
参数描述
参数 |
描述 |
---|---|
db_name |
Database名,若未指定,则使用当前database。 |
table_name |
在给定database中的表名。 |
number_of_loads |
加载数的限制。 |
注意事项
无。
示例
create table carbon01(a int,b string,c string) stored as carbondata;
insert into table carbon01 select 1,'a','aa';
insert into table carbon01 select 2,'b','bb';
insert into table carbon01 select 3,'c','cc';
SHOW SEGMENTS FOR TABLE carbon01 LIMIT 2;
系统响应
+-----+----------+--------------------------+------------------+------------+------------+-------------+--------------+--+ | ID | Status | Load Start Time | Load Time Taken | Partition | Data Size | Index Size | File Format | +-----+----------+--------------------------+------------------+------------+------------+-------------+--------------+--+ | 3 | Success | 2020-09-28 22:53:26.336 | 3.726S | {} | 6.47KB | 3.30KB | columnar_v3 | | 2 | Success | 2020-09-28 22:53:01.702 | 6.688S | {} | 6.47KB | 3.30KB | columnar_v3 | +-----+----------+--------------------------+------------------+------------+------------+-------------+--------------+--+
父主题: DML