Bug #118348 | using force index(i0) and ignore index(i0) for the same query, the result set changed | ||
---|---|---|---|
Submitted: | 4 Jun 1:52 | Modified: | 4 Jun 11:35 |
Reporter: | SamonBing SamonBing | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S3 (Non-critical) |
Version: | 8.0.41 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[4 Jun 1:52]
SamonBing SamonBing
[4 Jun 8:32]
SamonBing SamonBing
It is suspected that the problem is caused by a logic bug in the processing of floating numbers in the LEAST function. such as the 2 queries: mysql> SELECT ALL t1.c0 AS ref0, t1.c1 AS ref1, t1.c2 AS ref2, t1.c3 AS ref3 FROM t1 force index(i0) WHERE (t1.c0) IN (LEAST(2,0.3)); +------+------------+------+-----------+ | ref0 | ref1 | ref2 | ref3 | +------+------------+------+-----------+ | 000 | 0000000001 | NULL | 267008705 | +------+------------+------+-----------+ 1 row in set (0.00 sec) mysql> SELECT ALL t1.c0 AS ref0, t1.c1 AS ref1, t1.c2 AS ref2, t1.c3 AS ref3 FROM t1 force index(i0) WHERE (t1.c0) IN (LEAST(2,3)); Empty set (0.00 sec)
[4 Jun 11:35]
MySQL Verification Team
Hello SamonBing, Thank you for the bug report. Imho this is duplicate of Bug #118092, please see Bug #118092. Regards, Ashwini Patil