Bug #103869 | Duplicate computation of aggregate function when referred in HAVING clause | ||
---|---|---|---|
Submitted: | 31 May 2021 14:29 | Modified: | 2 Jun 2021 17:08 |
Reporter: | Øystein Grøvlen | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S5 (Performance) |
Version: | 8.0.24, 8.0.25 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[31 May 2021 14:29]
Øystein Grøvlen
[1 Jun 2021 12:39]
MySQL Verification Team
Hi Mr. Øystein Grøvlen, Thank you very much for your bug report. It does sound like a very interesting performance improvement report, but we must be able to repeat that behaviour, with 8.0.25. Can you be so kind and send us a repeatable test case ??? Thanks a lot in advance.
[1 Jun 2021 12:57]
Øystein Grøvlen
AFAICT, the only difference between 8.0.24 and 8.0.25 is Bug#32717969: Wrong result of execute prepare on 'smallint' Do you expect that to have fixed this issue?
[1 Jun 2021 13:13]
MySQL Verification Team
Hi, It is very hard to say, so a test case is truly important.
[1 Jun 2021 14:28]
Øystein Grøvlen
I can confirm that the issue also exists in 8.0.25
[2 Jun 2021 12:19]
MySQL Verification Team
Hi Mr. Grovlen, We truly believe you, but we do require a reproducible test case.
[2 Jun 2021 15:14]
Øystein Grøvlen
So the original test case in "How-to-repeat" is not not sufficient? EXPLAIN shows that the sum function is computed twice.
[2 Jun 2021 17:07]
Steinar Gunderson
The test case is sufficient.