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
Describe the bug
The columns suggestions for subqueries are not always given properly.
To Reproduce
Steps to reproduce the behavior:
WORKING CASE:
Create a sql statement such as:
SELECT * FROM
(SELECT sub1.listid, sub1.venuecity FROM
(SELECT v.venuecity, l.listid FROM venue v, listing l) sub1
) sub2, users u WHERE u.userid = sub2.venuecity AND u.userid = sub2.listid;
When changing '*' with sub2. the column names listid and venuecity are suggested.
INCORRECT CASE:
Create a sql statement such as:
SELECT * FROM users u,
(SELECT sub1.listid, sub1.venuecity FROM
(SELECT v.venuecity, l.listid FROM venue v, listing l) sub1
) sub2 WHERE u.userid = sub2.venuecity AND u.userid = sub2.listid;
When changing '*' with sub2. the column name listid is suggested, venuecity is not being suggested.
Additional context
It seems like this issue happens when we first add a table in the FROM clause and then a subquery. If we add them the other way around this issue doesn't appear.
The text was updated successfully, but these errors were encountered:
Describe the bug
The columns suggestions for subqueries are not always given properly.
To Reproduce
Steps to reproduce the behavior:
WORKING CASE:
sub2.
the column nameslistid
andvenuecity
are suggested.INCORRECT CASE:
sub2.
the column namelistid
is suggested,venuecity
is not being suggested.Additional context
It seems like this issue happens when we first add a table in the FROM clause and then a subquery. If we add them the other way around this issue doesn't appear.
The text was updated successfully, but these errors were encountered: