Bug #114886 | Incorrect semi-join with group by execution | ||
---|---|---|---|
Submitted: | 5 May 2024 9:16 | Modified: | 6 May 2024 6:29 |
Reporter: | Xiu Tang | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S1 (Critical) |
Version: | 8.2.0, 8.0.37 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[5 May 2024 9:16]
Xiu Tang
[5 May 2024 15:12]
Xiu Tang
I'm sorry, I made a mistake. SQL corrected to the following: mysql> SET optimizer_switch='materialization=on'; Query OK, 0 rows affected (0.00 sec) mysql> SELECT t0.c1 FROM t0 WHERE t0.c1 IN (SELECT t0.c0 FROM t0) GROUP BY t0.c1; Result: +-----------+ | c1 | +-----------+ | | | 292269042 | +-----------+ 2 rows in set, 2 warnings (0.00 sec) Expected Result: +------------+ | c1 | +------------+ | | | 292269042 | | 0V | 0 | +------------+
[6 May 2024 6:29]
MySQL Verification Team
Hello Xiu Tang, Thank you for the report and test case. regards, Umesh