invalid index hint to choose a multi-value index don't throw any warnings
Open
affects-6.5
affects-7.1
affects-7.5
affects-8.1
affects-8.5
severity/moderate
sig/planner
type/bug
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Bug Report
Please answer these questions before submitting your issue. Thanks!
### 1. Minimal reproduce step (Required)
```
CREATE TABLE customers (
id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
name CHAR(10),
custinfo JSON,
UNIQUE INDEX zips( (CAST(custinfo->'$.zipcode' AS UNSIGNED ARRAY)))
);
select * from customer use index(zips);
```
### 2. What did you expect to see? (Required)
SQL executes successfully, but a warning is displayed indicating that the hint is not operable.
### 3. What did you see instead (Required)
It executes successfully, without any warning.
### 4. What is your TiDB version? (Required)
current master.
Contributor guide
Assessment
This issue has not been assessed yet.