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

Parser doesn't support column list with subquery alias #8883

Closed
ritwizsinha opened this issue Sep 25, 2021 · 0 comments · Fixed by #8884
Closed

Parser doesn't support column list with subquery alias #8883

ritwizsinha opened this issue Sep 25, 2021 · 0 comments · Fixed by #8884

Comments

@ritwizsinha
Copy link
Contributor

Overview of the Issue

The parser tests fail when we give column list to the subquery alias. When we have a query such as

select `name`, numbers from (select * from users) as x(`name`, numbers);

with the users table schema as

+---------+--------------+------+-----+---------+-------+
| Field   | Type         | Null | Key | Default | Extra |
+---------+--------------+------+-----+---------+-------+
| id      | varchar(255) | YES  |     | NULL    |       |
| rollnos | int          | YES  |     | NULL    |       |
+---------+--------------+------+-----+---------+-------+

while the same query is valid in MySQL

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

Successfully merging a pull request may close this issue.

2 participants