Skip to content

unexpected unresolved column error when the view refers to dual table #35527

@bajinsheng

Description

@bajinsheng

Bug Report

1. Minimal reproduce step (Required)

CREATE VIEW v0(c0) AS SELECT NULL;
SELECT v0.c0 FROM v0 WHERE (v0.c0 IS NULL) LIKE(NULL); -- ERROR 1105 (HY000) at line 2: Can't find column Column#1 in schema Column: [] Unique key: []

2. What did you expect to see? (Required)

No error information.

3. What did you see instead (Required)

ERROR 1105 (HY000) at line 2: Can't find column Column#1 in schema Column: [] Unique key: []

4. What is your TiDB version? (Required)

| Release Version: v6.2.0-alpha-143-gcd731af05
Edition: Community
Git Commit Hash: cd731af
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 |

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions