Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Column name auto-completion does not work in a 'WITH' clause. #2291

Open
sibwy opened this issue Apr 22, 2022 · 0 comments
Open

Column name auto-completion does not work in a 'WITH' clause. #2291

sibwy opened this issue Apr 22, 2022 · 0 comments

Comments

@sibwy
Copy link

sibwy commented Apr 22, 2022

Create the following table with the data:

CREATE TABLE DATA( ID INT, NAME CHAR(20), AGE INT, SALARY INT );
INSERT INTO DATA VALUES (101, 'A', 25, 55452),(102, 'B', 29, 66458),(103, 'C', 35, 36944);

Problematic Query:

WITH
i AS (SELECT `ID`, `NAME`, `AGE`, `SALARY` FROM `test`.`data` d WHERE `AGE`>25 AND `SALARY` > 10000)
SELECT * FROM i; 

In the above subquery, the autocomplete doesn't work on typing the table alias i.e., "d. ".

This issue seems to be similar to this.

Also, executing just the subquery also has the same auto-complete problem. But it works fine if the opening parenthesis is removed.

The user report can be found in SF >> 00943062

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant