Bug #120773 Hash join misses DISTINCT ORDER BY LIMIT early termination
Submitted: 25 Jun 11:54 Modified: 26 Jun 10:38
Reporter: ZHAOYANG ZHANG Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Optimizer Severity:S5 (Performance)
Version:9.7.1 OS:Ubuntu (Ubuntu (22.04.4 LTS))
Assigned to: CPU Architecture:x86 (Intel(R) Xeon(R) Gold 5220 CPU @ 2.20GHz)
Tags: distinct, hash-join, limit, NO_BNL, Optimizer, order-by, performance

File: Maximum allowed size is 50MB.
Description:
Privacy:

If the data you need to attach is more than 50MB, you should create a compressed archive of the data, split it to 50MB chunks, and upload each of them as a separate attachment.

To split a large file:

[25 Jun 11:56] ZHAOYANG ZHANG
Reproduction package containing create_tables_insert_data.sql and run_optimizer_repro_cases.sql.

Attachment: mysql971-hash-join-distinct-order-by-limit-repro.zip.zip (application/x-zip-compressed, text), 4.88 KiB.