Error: Cannot find column
Open
fuzz/sqlancer
severity/moderate
sig/planner
type/bug
- Dominant language
- Go
- Stars
- 40.5k
- Forks
- 6.2k
- PR merge metrics
- PR metrics pending
Description
## Bug Report
### 1. Minimal reproduce step (Required)
```sql
create table t0(c0 varchar(0));
create view v1 as select 0 c_1, case when(select c0) then 0 end from t0;
select min((select c_1 from v1)) over(); --ERROR 1105 (HY000) at line 1: Can't find column Column#14 in schema Column: [Column#20] PKOrUK: [] NullableUK: []
```
### 2. What did you expect to see? (Required)
No error
### 3. What did you see instead (Required)
### 4. What is your TiDB version? (Required)
`tiup playground nightly --host 0.0.0.0 --kv 3 --tiflash 3`
```bash
8.0.11-TiDB-v9.0.0-beta.1.pre-554-gb1a5536a64-dirty
```
Contributor guide
Assessment
This issue has not been assessed yet.