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

Different error message from MySQL when select a window function with group by #11518

Closed
SunRunAway opened this issue Jul 30, 2019 · 0 comments · Fixed by #16134
Closed

Different error message from MySQL when select a window function with group by #11518

SunRunAway opened this issue Jul 30, 2019 · 0 comments · Fixed by #16134
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. sig/planner SIG: Planner type/bug The issue is confirmed as a bug.

Comments

@SunRunAway
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?
    If possible, provide a recipe for reproducing the error.
SELECT ROW_NUMBER() OVER() from table60_int_autoinc group by 1 ;
  1. What did you expect to see?
mysql> SELECT ROW_NUMBER() OVER() from table60_int_autoinc group by 1 ;
ERROR 1056 (42000): Can't group on 'ROW_NUMBER() OVER()'
  1. What did you see instead?
mysql> SELECT ROW_NUMBER() OVER() from table60_int_autoinc group by 1 ;
ERROR 3593 (HY000): You cannot use the window function 'ROW_NUMBER' in this context.'
  1. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. sig/planner SIG: Planner type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant