Bug #113135 | DISTINCT JOIN ORDER BY statements ignore ORDER BY when tmp_table_size is small | ||
---|---|---|---|
Submitted: | 20 Nov 2023 3:03 | Modified: | 20 Nov 2023 13:03 |
Reporter: | Xizhe Zhang (OCA) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S3 (Non-critical) |
Version: | 8.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | distinct, join, order by, tmp_table_size |
[20 Nov 2023 3:03]
Xizhe Zhang
[20 Nov 2023 13:03]
MySQL Verification Team
Hi Mr Zhang, Thank you for your bug report. Since 5.7 is no longer maintained, we tested your test case only on 8.0 and higher. We repeated your test results: id 212 213 214 215 216 217 218 219 220 221 It turns out that tmp_table_size minimum should be significantly increased. Your query worked only with 2 Mb or higher values, hence we think that minimum should be 16M. Verified as reported.