[MDEV-14210] Wrong result set from a query with HAVING containing a subquery with SF call. Created: 2017-10-30 Updated: 2023-12-05 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.2, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8 |
| Fix Version/s: | 10.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Igor Babaev | Assignee: | Michael Widenius |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | 11.0-sel | ||
| Description |
|
The query with HAVING from the following test case
returns a wrong result set:
The expected result set is:
This bug is a regression as 5.5,10.0,10.1 return the right result set |
| Comments |
| Comment by Alice Sherepa [ 2022-11-24 ] | ||||||||||||||||
|
Currently 10.3-10.10 (10.3 f4a1298f245f678badc8a5b5) returns the expected result, but without FORCE INDEX the result is different:
without FORCE INDEX:
on bb-11.0 ebd10cdcd5f87743ff3 - there is a wrong (2nd) result in both cases |