【 使用环境 】测试环境
【 OB or 其他组件 】
【 使用版本 】OceanBase_CE-v4.3.5.1
【问题描述】使用obd部署后,测试下向量功能,根据文档里的建表语句创建就报错了。
文档地址:https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000002012936
建表语句: CREATE TABLE t1(c1 INT, c0 INT, c2 VECTOR(10), c3 VECTOR(10), PRIMARY KEY(c1), VECTOR INDEX idx1(c2) WITH (distance=l2, type=hnsw, lib=vsag), VECTOR INDEX idx2(c3) WITH (distance=l2, type=hnsw, lib=vsag));
使用root用户或者普通用户都尝试过,都提示这个报错ERROR 1235 (0A000): not user tenant create vector index is not supported
ERROR 1235 (0A000): not user tenant create vector index is not supported
ERROR 1235 (0A000): not user tenant create vector index is not supported
看不懂这英文是啥意思还是咋滴。 not user tenant!!!!!!!!!!!!你跑sys租户上创建,他能行吗?一天到晚东搞西搞
变量设置了
那就是楼上说的那个情况了 不要在sys租户下操作 自己创建一个业务租户操作
普通用户也试过也是一样,刚接触ob还很多地方不清楚
1 个赞
在业务租户操作的步骤 发一下看看 看看是否操作有问题导致的没有创建成功