[MDEV-24247] EXPLAIN EXTENDED does not show condition in HAVING Created: 2020-11-18 Updated: 2023-04-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.2, 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.4, 10.5 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Sergei Petrunia |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Note having 1 in the output above. 10.1 displays the condition:
The difference appeared in very early 10.2 branch after this merge:
|
| Comments |
| Comment by Igor Babaev [ 2020-12-06 ] |
|
count(0) is a constant. If the value of this constant is less then 2 then 'having 1' in the explain output is OK. |
| Comment by Igor Babaev [ 2020-12-06 ] |
|
count(0) is a constant. If the value of this constant is less then 2 then 'having 1' in the explain output is OK. |