[MDEV-17451] Query with Window Functions which could use minmax const optimization does not work Created: 2018-10-14 Updated: 2021-03-19 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 10.2 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Vicențiu Ciorbaru | Assignee: | Sergei Petrunia |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
The following query reads the full t1 table, although it should only need to fill the tmp table with 1 value, that of min(a) and a random value from a. The problem seems to be that we consider 'a' from bit_and(a) to be a separate column, yet we could get the value of a when computing min(a).
|