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

Use qualify row_number() ... not support select * #51703

Open
wmtbnbo opened this issue Oct 10, 2024 · 1 comment
Open

Use qualify row_number() ... not support select * #51703

wmtbnbo opened this issue Oct 10, 2024 · 1 comment

Comments

@wmtbnbo
Copy link
Contributor

wmtbnbo commented Oct 10, 2024

When I execute the following SQL statement.

select a.* from tablea a qualify row_number() over (partition by a.id order by a.date desc) = 1;

I will receive an exception message.

ERROR 1064 (HY000): Getting syntax error. Detail message: Can't support result other than column..

Adjust the statement to
select a.id,a.name from tablea a qualify row_number() over (partition by a.id order by a.date desc) = 1;

The statement can run normally.

@wmtbnbo wmtbnbo changed the title Use qualify row_number() ... not support * Use qualify row_number() ... not support select * Oct 10, 2024
@wangsimo0
Copy link
Contributor

good enhancement

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

No branches or pull requests

2 participants