Bug #37532 | Explain command shows incorrect rows, when table is partitioned and innodb. | ||
---|---|---|---|
Submitted: | 19 Jun 2008 19:53 | Modified: | 30 May 2009 5:23 |
Reporter: | Hema Sridharan | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S3 (Non-critical) |
Version: | 5.1+ | OS: | Linux |
Assigned to: | Jon Stephens | CPU Architecture: | Any |
[19 Jun 2008 19:53]
Hema Sridharan
[19 Jun 2008 21:16]
Sveta Smirnova
Thank you for the report. Verified as described.
[20 Jun 2008 21:02]
Hema Sridharan
Though I understand what is stated, I feel that these should be properly documented from users perspective. The sentence within the manual is not clear that the number of rows is an estimation.
[24 Jun 2008 8:53]
Mattias Jonsson
This is not a partitioning bug, since this specific EXPLAIN query can be repeated without partitioning by: CREATE TABLE t1 (a INT) ENGINE = InnoDB; EXPLAIN SELECT * FROM t1; id select_type table type possible_keys key key_len ref rows Extra 1 SIMPLE t1 ALL NULL NULL NULL NULL 1 I.e An empty innodb table/partition does say 1 row in the EXPLAIN, that's why it shows 7 instead of 6 when it is partitioned (since the MAXVALUE partition was empty).
[18 Feb 2009 10:45]
Sveta Smirnova
Bug still repeatable with current 5.1 and 6.0 sources.
[3 Mar 2009 2:21]
Omer Barnir
Innodb returns estimates of rows in explain and not an exact number
[3 Mar 2009 6:55]
Sveta Smirnova
Thank you for the feedback. Reclassifying as doc request.
[27 Mar 2009 10:15]
Sveta Smirnova
See also bug #43903 and comment "[27 Mar 11:14] Sveta Smirnova" to bug #43903
[20 May 2009 10:42]
Jon Stephens
Partitioning docs -> should be assigned to me. See also BUG#44646 for possibly related documentation issue.
[30 May 2009 5:23]
Jon Stephens
Thank you for your bug report. This issue has been addressed in the documentation. The updated documentation will appear on our website shortly, and will be included in the next release of the relevant products.