You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
The following program triggers this error, but actually t1.c0 not in where clause:
CREATE TABLE t0(c0 CHAR);
CREATE TABLE t1(c0 CHAR);
SELECT COUNT(t1.c0) AS c0 FROM t0 NATURAL JOIN t1 WHERE 'Q'; -- Unknown column 't1.c0' in 'where clause'
I notice there are some other reports about this error message. For #42732 and #24324, the test case in this report does not contain subquery; for #35031, I tried SELECT COUNT(t1.c0) AS c0 FROM t0 NATURAL JOIN t1 WHERE t1.c0=1; and do not return any error.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
The following program triggers this error, but actually
t1.c0
not inwhere clause
:I notice there are some other reports about this error message. For #42732 and #24324, the test case in this report does not contain subquery; for #35031, I tried
SELECT COUNT(t1.c0) AS c0 FROM t0 NATURAL JOIN t1 WHERE t1.c0=1;
and do not return any error.2. What did you expect to see? (Required)
No error.
3. What did you see instead (Required)
Unknown column 't1.c0' in 'where clause'
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: