Bug #72814 Assertion `!(ordered_index_usage == ordered_index_void && ... fails
| Submitted: | 30 May 2014 9:31 | Modified: | 2 Jun 2014 9:41 |
|---|---|---|---|
| Reporter: | Elena Stepanova | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
| Version: | 5.6.17 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[30 May 2014 9:31]
Elena Stepanova
[2 Jun 2014 9:41]
MySQL Verification Team
Hello Elena, Thank you for the bug report and test case. Verified as described. Thanks, Umesh
[2 Jun 2014 9:42]
MySQL Verification Team
Observed that debug builds are crashing where as release builds are not affected. ///// mysql> select version(); +---------------------------------------+ | version() | +---------------------------------------+ | 5.6.20-enterprise-commercial-advanced | +---------------------------------------+ 1 row in set (0.00 sec) mysql> CREATE TABLE t1 (a INT, b VARCHAR(1), KEY(b,a)) ENGINE=InnoDB; Query OK, 0 rows affected (0.36 sec) mysql> INSERT INTO t1 VALUES (1,'v'),(2,'s'); Query OK, 2 rows affected (0.10 sec) Records: 2 Duplicates: 0 Warnings: 0 mysql> CREATE TABLE t2 (c INT, KEY(c)) ENGINE=InnoDB; Query OK, 0 rows affected (0.41 sec) mysql> INSERT INTO t2 VALUES (1),(3); Query OK, 2 rows affected (0.09 sec) Records: 2 Duplicates: 0 Warnings: 0 mysql> SELECT a, SUM( DISTINCT a ) FROM t1 WHERE a IN ( SELECT c FROM t2 ) GROUP BY a ORDER BY b; +------+-------------------+ | a | SUM( DISTINCT a ) | +------+-------------------+ | 1 | 1 | +------+-------------------+ 1 row in set (0.01 sec) // mysql> select version(); +-------------------------------------------+ | version() | +-------------------------------------------+ | 5.6.19-enterprise-commercial-advanced-log | +-------------------------------------------+ 1 row in set (0.00 sec) mysql> CREATE TABLE t1 (a INT, b VARCHAR(1), KEY(b,a)) ENGINE=InnoDB; Query OK, 0 rows affected (0.03 sec) mysql> INSERT INTO t1 VALUES (1,'v'),(2,'s'); Query OK, 2 rows affected (0.00 sec) Records: 2 Duplicates: 0 Warnings: 0 mysql> mysql> CREATE TABLE t2 (c INT, KEY(c)) ENGINE=InnoDB; Query OK, 0 rows affected (0.04 sec) mysql> INSERT INTO t2 VALUES (1),(3); Query OK, 2 rows affected (0.00 sec) Records: 2 Duplicates: 0 Warnings: 0 mysql> SELECT a, SUM( DISTINCT a ) FROM t1 WHERE a IN ( SELECT c FROM t2 ) GROUP BY a ORDER BY b; +------+-------------------+ | a | SUM( DISTINCT a ) | +------+-------------------+ | 1 | 1 | +------+-------------------+ 1 row in set (0.01 sec)
[2 Jun 2014 9:43]
MySQL Verification Team
// 5.7.5 - Not affected (debug/non-debug builds) mysql> select version(); +----------------------------------------------+ | version() | +----------------------------------------------+ | 5.7.5-m15-enterprise-commercial-advanced-log | +----------------------------------------------+ 1 row in set (0.00 sec) mysql> CREATE TABLE t1 (a INT, b VARCHAR(1), KEY(b,a)) ENGINE=InnoDB; Query OK, 0 rows affected (0.03 sec) mysql> INSERT INTO t1 VALUES (1,'v'),(2,'s'); Query OK, 2 rows affected (0.00 sec) Records: 2 Duplicates: 0 Warnings: 0 mysql> mysql> CREATE TABLE t2 (c INT, KEY(c)) ENGINE=InnoDB; Query OK, 0 rows affected (0.03 sec) mysql> INSERT INTO t2 VALUES (1),(3); Query OK, 2 rows affected (0.01 sec) Records: 2 Duplicates: 0 Warnings: 0 mysql> SELECT a, SUM( DISTINCT a ) FROM t1 WHERE a IN ( SELECT c FROM t2 ) GROUP BY a ORDER BY b; +------+-------------------+ | a | SUM( DISTINCT a ) | +------+-------------------+ | 1 | 1 | +------+-------------------+ 1 row in set (0.04 sec)
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.040 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.