Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.5, 10.2(EOL), 10.3(EOL), 10.4(EOL)
-
None
Description
MariaDB [test]> create table t1(a int) engine=MYISAM;
|
Query OK, 0 rows affected (0.01 sec)
|
 |
MariaDB [test]> SELECT sum(1) as x, row_number() OVER() FROM t1;
|
+------+---------------------+
|
| x | row_number() OVER() |
|
+------+---------------------+
|
| NULL | NULL |
|
+------+---------------------+
|
1 row in set (0.00 sec)
The above query return NULL for the window function row_number, which is incorrect.
When we have implicit grouping window function would be executed once and the result should be 1
Attachments
Issue Links
- duplicates
-
MDEV-20012 Window function multiplication on empty table on default value returns wrong result
- Closed
- relates to
-
MDEV-20012 Window function multiplication on empty table on default value returns wrong result
- Closed