Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Duplicate
-
10.2.0
-
RHEL 6.6 64 bit
Description
10.2.0-MariaDB
The query
select blah, row_number() over() from (select 'foo' blah) t; |
hangs indefinitely. The process list shows:
+----+------+-----------+-------+---------+------+-------+------------------+----------+
|
| Id | User | Host | db | Command | Time | State | Info | Progress |
|
+----+------+-----------+-------+---------+------+-------+------------------+----------+
|
| 17 | root | localhost | onedb | Sleep | 958 | | | 0.000 |
|
| 22 | root | localhost | | Query | 0 | init | show processlist | 0.000 |
|
+----+------+-----------+-------+---------+------+-------+------------------+----------+
|
If ORDER BY or PARTITION BY (or both) is specified in OVER(), the query executes successfully.