incorrect unresolved column when using natural join
- 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 CHAR);
CREATE TABLE t1 LIKE t0;
SELECT t1.c0 FROM t1 NATURAL RIGHT JOIN t0 WHERE true IS NULL; -- ERROR 1054 (42S22) at line 4: Unknown column 't1.c0' in 'field list'
```
### 2. What did you expect to see? (Required)
No error information.
### 3. What did you see instead (Required)
ERROR 1054 (42S22) at line 4: Unknown column 't1.c0' in 'field list'
### 4. What is your TiDB version? (Required)
| Release Version: v6.2.0-alpha-143-gcd731af05
Edition: Community
Git Commit Hash: cd731af05a5446bb8dcba83f0e163176c75f5cea
Git Branch: master
UTC Build Time: 2022-06-20 07:36:55
GoVersion: go1.18.3
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false
Store: unistore |
Contributor guide
Assessment
This issue has not been assessed yet.