Details
-
Task
-
Status: Stalled (View Workflow)
-
Major
-
Resolution: Unresolved
-
None
-
10.2.0-9
Description
Current code assumes that window function computation is a once-in-a-query
event. It creates Item and Cached_item objects, and allocates things on
thd->mem_root.
This task is separate the computations into
- Stage #1: a part that is done once
- Stage #2: a part that is re-run for every select re-execution.
Also, all 'cursor' objects must be created at stage #1.
Attachments
Issue Links
- is part of
-
MDEV-6115 window functions as in the SQL standard
-
- Closed
-
Activity
Description |
Current code assumes that window function computation is a once-in-a-query
event. It creates Item and Cached_item objects, and allocates things on thd->mem_root. This task is separate the computations into * a part that is done once * a part that is re-run for every select re-execution. |
Current code assumes that window function computation is a once-in-a-query
event. It creates Item and Cached_item objects, and allocates things on thd->mem_root. This task is separate the computations into * Stage #1: a part that is done once * Stage #2: a part that is re-run for every select re-execution. Also, all 'cursor' objects must be created at stage #1. |
Sprint | 10.2.0-9 [ 43 ] |
Rank | Ranked higher |
Status | Open [ 1 ] | In Progress [ 3 ] |
Sprint | 10.2.0-9 [ 43 ] | 10.2.0-9, 10.2.0-10 [ 43, 46 ] |
Sprint | 10.2.0-9, 10.2.0-10 [ 43, 46 ] | 10.2.0-9 [ 43 ] |
Rank | Ranked higher |
Component/s | Optimizer - Window functions [ 13502 ] | |
Component/s | Optimizer [ 10200 ] |
Workflow | MariaDB v3 [ 74568 ] | MariaDB v4 [ 131815 ] |
Status | In Progress [ 3 ] | Stalled [ 10000 ] |
Note: we free all that we allocate, so you don't get crashes when running window functions in a dependent subquery currently.
You may get O(#subquery_executions) memory consumption, though.