返回首页

gbase数据、南大通用产品文档:GBase8a

更新日期:2024年09月11日

KAFKA_CONSUMER_STATUS
存储的信息为事务型consumer task 的运行状态。各个column 的含义如下:
表 5-63 具体信息如下:
CONSUMER
consumer name
IP
该consumer 运行在哪个coordinator
TOPIC
该consumer 从哪个kafka topic 消费数据
STATUS
运行状态
MIN_OFFSET
Kafka 队列里的最靠前的消息的offset
MAX_OFFSET
Kafka 队列里的最靠后的消息的offset
CUR_OFFSET
Consumer 完成解析的消息的offset
PROCESS_OFFSET
Consumer 完成处理的消息的offset
COMMIT_OFFSET
Consumer 完成提交的消息的offset

语法:

-pB 选项显示描述指定表中 blobspace blobpage 的平均充满度的统计信息。这些统计信息
衡量数据库或表中的个别简单大对象的存储效率。如果未指定表或分片,那么此选项显示
整个数据库的统计信息。有关更多信息,请参阅 GBase 8s 管理员指南 中的 管理磁盘空
间 一章中的“优化 blobspace blobpage 大小”。

语法格式
RENAME TABLE [database_name.]old_table_name TO [database_name.]
new_table_name;
参数说明

database_name:是要修改表隶属的数据库名称,可选项;省略此参数,即为
USE 后的数据库名称。

old_table_name:是表的原有名称。

new_table_name:是表的要修改后的新名称。
功能
RENAME TABLE 的功能就是将一张已经存在的表的名称修改为一个不存在的新的
表名称。
示例
示例1:更改表tx1 的名称为tx_1。

GBase UP 产品手册 5 数据库管理指南
文档版本04(2021-04-21) 南大通用数据技术股份有限公司 650
gbase>
SELECT
table_schema,table_name,table_rows
FROM
information_schema.tables
WHERE
table_schema='test' AND table_name = 'tx1';
+--------------+------------+------------+
| table_schema | table_name | table_rows |
+--------------+------------+------------+
| test | tx1 | 0 |
+--------------+------------+------------+
1 row in set
gbase> USE test;
Query OK, 0 rows affected
gbase> RENAME TABLE test.tx1 to test.tx_1;
Query OK, 0 rows affected
gbase>
SELECT
table_schema,table_name,table_rows
FROM
information_schema.tables
WHERE
table_schema='test' AND table_name = 'tx_1';
+--------------+------------+------------+
| table_schema | table_name | table_rows |
+--------------+------------+------------+
| test | tx_1 | 0 |
+--------------+------------+------------+
1 row in set