GBase 8a
适配迁移
文章
GBase 8a创建全文索引报错Too many keys specified; max 1 keys allowed
GBase社区管理员发表于2021-07-01 16:16:0028次浏览0个评论
GBase 8a MPP集群支持全文索引,但在一个字段上只能创建一个FULLTEXT,如果创建多个,则会报这个错误:Too many keys specified; max 1 keys allowed。
报错样例
ERROR 1702 (HY000): gcluster table error: Too many keys specified; max 1 keys allowed.
原因
一个列,创建多个全文索引FULLTEXT。
gbase> create fulltext index idx_memo on t1(memo) with parser part4;
Query OK, 0 rows affected (Elapsed: 00:00:00.16)
Records: 0 Duplicates: 0 Warnings: 0
gbase> create fulltext index idx_name on t1(memo) with parser part2;
ERROR 1702 (HY000): gcluster table error: Too many keys specified; max 1 keys allowed.
gbase>
解决方案
看是否列名写错了,不要在1个列上重复创建全文索引。
评论已关闭
热门帖子
- 12025-12-01浏览数:182759
- 22023-05-09浏览数:25051
- 42023-09-25浏览数:18521
- 52020-05-11浏览数:17526