Hi 咨询一下,PolarDB-x 单表不支持添加二级索引吗?uncategorized SQLE

Hi 咨询一下,PolarDB-x 单表不支持添加二级索引吗?uncategorized SQLException for SQL [CREATE TABLE IF NOT EXISTS snow_namespace.snow_product_test(ID int NOT NULL AUTO_INCREMENT,PRODUCT_NAME varchar(255) DEFAULT NULL,ADDRESS varchar(255) DEFAULT NULL,CITY text DEFAULT NULL,CREATE_TIME datetime(6) DEFAULT NULL,PRIMARY KEY (ID),INDEX IDX_1_PRODUCT_NAME (PRODUCT_NAME))]; SQL state [HY000]; error code [5302]; [15287e34b9401000][11.197.5.95:3075][snow_data_dev]ERR-CODE: [TDDL-5302][ERR_GLOBAL_SECONDARY_INDEX_UNSUPPORTED] Adding global index on other schema is forbidden, so please login with corresponding schema. ; nested exception is java.sql.SQLException: [15287e34b9401000][11.197.5.95:3075][snow_data_dev]ERR-CODE: [TDDL-5302][ERR_GLOBAL_SECONDARY_INDEX_UNSUPPORTED] Adding global index on other schema is forbidden, so please login with corresponding schema.

展开
收起
雪哥哥 2022-11-05 21:44:46 515 分享 版权
1 条回答
写回答
取消 提交回答
  • index 名称前带上 owner 试试?(此答案整理自阿里云 PolarDB-X 开源交流群)

    2022-11-05 22:02:53
    赞同 展开评论

PolarDB 分布式版 (PolarDB for Xscale,简称“PolarDB-X”) 采用 Shared-nothing 与存储计算分离架构,支持水平扩展、分布式事务、混合负载等能力,100%兼容MySQL。 2021年开源,开源历程及更多信息访问:OpenPolarDB.com/about

收录在圈子:
还有其他疑问?
咨询AI助理