Details
-
Bug
-
Status: Stalled (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.2(EOL), 10.3(EOL), 10.4(EOL)
-
None
Description
CREATE TABLE t(i int,j int); |
INSERT INTO t VALUES (1,1), (1,5),(1,4), (2,2),(2,5), (3,3),(4,4); |
INSERT INTO t VALUES (1,1), (1,5),(1,4), (2,2),(2,5), (3,3),(4,4); |
SELECT i, last_value(count(i)) OVER (partition BY i) FROM t GROUP BY i; |
MariaDB [test]> SELECT i, last_value(count(i)) OVER (partition by i) FROM t GROUP BY i;
|
ERROR 1111 (HY000): Invalid use of group function
|
PostgreSQL:
i last_value
1 6
2 4
3 2
4 2
Attachments
Issue Links
- duplicates
-
MDEV-19053 Error using first_value/last_value window function with aggregated function
- Closed
- relates to
-
MDEV-11867 Invalid use of group function -
- Closed