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

window function: function name of error message should be lowercase #11009

Closed
SunRunAway opened this issue Jul 1, 2019 · 1 comment · Fixed by #11047
Closed

window function: function name of error message should be lowercase #11009

SunRunAway opened this issue Jul 1, 2019 · 1 comment · Fixed by #11047
Assignees
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. type/bug The issue is confirmed as a bug. type/compatibility

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 NTH_VALUE(fieldA, 0) RESPECT NULLS OVER ( ORDER BY fieldB DESC, fieldA ASC ) AS 'nth_value', fieldA, fieldB FROM ( SELECT `col_varchar` AS fieldA, `col_time_key` AS fieldB FROM `table60_int_autoinc` ) as t WINDOW w1 AS ( ORDER BY fieldA DESC, fieldB ROWS BETWEEN 0 FOLLOWING AND CURRENT ROW);
  1. What did you expect to see?
ERROR 1210 (HY000) at line 1: Incorrect arguments to nth_value
  1. What did you see instead?
ERROR 1210 (HY000) at line 1: Incorrect arguments to NTH_VALUE
  1. What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?
@SunRunAway SunRunAway added type/bug The issue is confirmed as a bug. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. type/compatibility labels Jul 1, 2019
@tcmichael
Copy link

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. type/bug The issue is confirmed as a bug. type/compatibility
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants