| 错误码 | 错误描述 | 示例 |
| 9539 | 创建 GSI 全局索引时,分区函数引用的列未全部包含在索引列中 | A GLOBAL INDEX must include all columns in the global index's partitioning function |
| 9540 | 创建 RANGE 分区的 GSI 全局索引时,分区列的顺序不是索引列的前缀 | For a RANGE-partitioned GLOBAL INDEX, the partition columns must be a prefix of the index columns |
| 9541 | 对 GSI 全局索引执行 DML 时,待写入数据找不到匹配的分区(例如插入值超出分区范围) | Global index gsi_idx has no partition for the given value |
| 9542 | GSI 全局唯一索引当前不可用(Schema 状态处于 AlwaysAbsent)执行 DML 时报错 | Global unique index gsi_uk of table test.t1 is currently unusable. Use ALTER TABLE … UPDATE GLOBAL INDEXES to rebuild. |
| 9543 | 自适应查询计划判断当前 ordering index 选择不可行,系统会清除该错误并自动关闭 OPTIMIZER_SWITCH_PREFER_ORDERING_INDEX 后重试查询 | The query will restart with flag OPTIMIZER_SWITCH_PREFER_ORDERING_INDEX off. |
TDSQL Boundless 9501-9600(错误码信息)
•
腾讯云产品
这篇列出了TDSQL中GSI全局索引相关的5个错误码(9539-9543),说明其触发条件与含义。 GSI创建错误:分区列必须包含在索引列中,RANGE分区列须为索引列前缀。 DML与唯一索引:数据超出分区范围报错;唯一索引不可用时需重建。 自适应查询:ordering索引不可行时自动关闭优化开关后重试。
赞 (0)