返回首页

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

更新日期:2024年09月11日

GBA-01EX-0003
错误码
错误标识
错误信息
GBA-01EX-000
3
ER_EXPRESS_DATA
TYPE
express engine unsupported data type
错误出现原因
含有express 引擎不支持的数据类型
分析与建议
请查阅“数据类型”章节,或改用express 引擎支持的类型。

执行initnodedatamap 命令初始化hashmap,然后将数据通过rebalance instance 命令
重分布到最新的distribution(Distribution ID:3)上。

GBase 8a MPP Cluster 产品手册
4 管理员指南
文档版本953(2022-04-10)
南大通用数据技术股份有限公司
340
说明

按distribution 分布规则,此次rebalance 操作不会实际进行数据搬移,所
以会很快完成;

本次rebalance 操作后不要删掉旧版nodedatamap 和distribution。
操作步骤
步骤1 :
步骤1:初始化hashmap:
$ gccli -uroot
GBase client 9.5.3.17.117651. Copyright (c) 2004-2020, GBase.
All Rights
Reserved.
gbase> use vc vc2;
Query OK, 0 rows affected (Elapsed: 00:00:00.00)
gbase> initnodedatamap;
Query OK, 0 rows affected, 5 warnings (Elapsed: 00:00:01.45)
步骤2:执行数据重分布:
gbase> rebalance instance;
Query OK, 3 rows affected (Elapsed: 00:00:05.60)
查看rebalance 状态:
gbase>
select
index_name,status,percentage,priority,host,distribution_id
from
gclusterdb.rebalancing_status;
+------------+-----------+------------+----------+---------------+-----------------+
| index_name | status
| percentage | priority | host
| distribution_id |
+------------+-----------+------------+----------+---------------+-----------------+
| demo.tt
| COMPLETED |
100 |
5 | 172.168.83.14 |
3 |
| demo.t
| COMPLETED |
100 |
5 | 172.168.83.14 |
3 |
| demo.ttt
| COMPLETED |
100 |
5 | 172.168.83.14 |
3 |
+------------+-----------+------------+----------+---------------+-----------------+
3 rows in set (Elapsed: 00:00:00.17)
gbase> quit
Bye

返回值
返回X 的非负平方根。
示例
示例1

GBase UP 产品手册 5 数据库管理指南
文档版本04(2021-04-21) 南大通用数据技术股份有限公司 473
返回“4”的平方根。
gbase> SELECT SQRT(4) FROM t;
+---------+
| SQRT(4) |
+---------+
| 2 |
+---------+
1 row in set
说明
不同引擎返回值的精度可能不同。
示例2
返回“20”的平方根。
gbase> SELECT SQRT(20) FROM t;
+------------------+
| SQRT(20) |
+------------------+
| 4.47213595499958 |
+------------------+
1 row in set