Bug #119059 | Inconsistent result behavior when using EXCEPT equivalent NATRUAL JOIN | ||
---|---|---|---|
Submitted: | 23 Sep 3:44 | Modified: | 23 Sep 17:04 |
Reporter: | 策 吕 | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S2 (Serious) |
Version: | 9.2.0, 9.4.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[23 Sep 3:44]
策 吕
[23 Sep 17:04]
MySQL Verification Team
Thank you for the report and a test case mysql> SELECT DISTINCTROW t0.c0 AS ref0 FROM t0 NATURAL JOIN t1; Empty set (0.000 sec) mysql> (SELECT DISTINCTROW t0.c0 AS ref0 FROM t0 NATURAL LEFT JOIN t1) -> EXCEPT -> ((SELECT DISTINCTROW t0.c0 AS ref0 FROM t0 NATURAL LEFT JOIN t1) -> EXCEPT -> (SELECT DISTINCTROW t0.c0 AS ref0 FROM t0 NATURAL RIGHT JOIN t1)); +--------------------+ | ref0 | +--------------------+ | 0.3565946270598622 | +--------------------+ 1 row in set (0.002 sec) mysql> select @@version; +-----------+ | @@version | +-----------+ | 9.4.0 | +-----------+ 1 row in set (0.000 sec) mysql>