Can not find physical plan when using optimizer hint
- 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)
```sql
create table `t0` (`a` int,index(`a`)); -- 76ms;
create table `t1` (`a` int,index(`a`)); -- 81ms;
select /*+ no_merge_join(`t1`) no_hash_join(`t1`) */ * from `t0` , `t1` where `t0`.`a`= `t0`.`a`;
```
### 2. What did you expect to see? (Required)
Query executed successfully.
### 3. What did you see instead (Required)
```sql
mysql> select /*+ no_merge_join(`t1`) no_hash_join(`t1`) */ * from `t0` , `t1` where `t0`.`a`= `t0`.`a`;
ERROR 1815 (HY000): Internal : Can't find a proper physical plan for this query
```
### 4. What is your TiDB version? (Required)
```sql
Release Version: v8.5.0-alpha-79-g426ce3e570
Edition: Community
Git Commit Hash: 426ce3e57069afbd8f061d7ae39c79d3f9e2ff5d
Git Branch: master
UTC Build Time: 2024-11-09 12:25:03
GoVersion: go1.23.0
Race Enabled: false
Check Table Before Drop: false
Store: tikv
```
Contributor guide
Assessment
This issue has not been assessed yet.