-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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: Window 'w': frame start or end is negative, NULL or of non-integral type #11011
Comments
/assign |
Ping @zuoRambo , any update? |
@SunRunAway pong~ Ongoing... |
Sorry & SOS, I need help! I read the code about tidb/planner/core/logical_plan_builder.go Lines 2966 to 2969 in 8c20289
Map noFrameWindowFuncs defines the functions that needn't have frame specifications. So we the warnings.
|
Hi, I've tried functions which is not in In MySQL8, mysql> SELECT FIRST_VALUE(fieldA) OVER w1 AS 'dense_rank', fieldA, fieldB FROM ( SELECT `col_double_unsigned` AS fieldA, `col_double_unsigned` AS fieldB FROM `table30_int_autoinc` ) as t WINDOW w1 AS ( ORDER BY fieldA , fieldB ASC ROWS BETWEEN 1250951168 FOLLOWING AND 1250951168 PRECEDING);
ERROR 3586 (HY000): Window 'w1': frame start or end is negative, NULL or of non-integral type In TiDB, mysql> SELECT FIRST_VALUE(fieldA) OVER w1 AS 'dense_rank', fieldA, fieldB FROM ( SELECT `col_double_unsigned` AS fieldA, `col_double_unsigned` AS fieldB FROM `table30_int_autoinc` ) as t WINDOW w1 AS ( ORDER BY fieldA , fieldB ASC ROWS BETWEEN 1250951168 FOLLOWING AND 1250951168 PRECEDING);
+------------+-------------+-------------+
| dense_rank | fieldA | fieldB |
+------------+-------------+-------------+
| NULL | NULL | NULL |
| NULL | NULL | NULL |
| NULL | 0 | 0 |
| NULL | 0 | 0 |
| NULL | 0 | 0 |
| NULL | 0 | 0 |
| NULL | 0 | 0 |
| NULL | 0 | 0 |
| NULL | 0 | 0 |
| NULL | 0 | 0 |
| NULL | 0 | 0 |
| NULL | 0 | 0 |
| NULL | 0 | 0 |
| NULL | 0 | 0 |
| NULL | 0 | 0 |
| NULL | 0 | 0 |
| NULL | 0 | 0 |
| NULL | 0 | 0 |
| NULL | 0 | 0 |
| NULL | 0 | 0 |
| NULL | 0 | 0 |
| NULL | 0 | 0 |
| NULL | 0.00000001 | 0.00000001 |
| NULL | 0.00000001 | 0.00000001 |
| NULL | 0.00000001 | 0.00000001 |
| NULL | 0.999999999 | 0.999999999 |
| NULL | 1.098781 | 1.098781 |
| NULL | 1.098781 | 1.098781 |
| NULL | 1.098781 | 1.098781 |
| NULL | 1.098781 | 1.098781 |
+------------+-------------+-------------+
30 rows in set (0.00 sec) |
Bug Report
Please answer these questions before submitting your issue. Thanks!
If possible, provide a recipe for reproducing the error.
tidb-server -V
or runselect tidb_version();
on TiDB)?The text was updated successfully, but these errors were encountered: