[MDEV-2336] LP:917990 - Bad estimate of the number of rows in derived table with LIMIT clause Created: 2012-01-18 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Igor Babaev | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
If the table expression for a derived table contains a LIMIT clause then the estimate of the number of rows read from the derived table may be badly off in mariadb-5.3: MariaDB [test]> create table t1 (a int); MariaDB [test]> insert into t1 values MariaDB [test]> select * from (select * from t1 limit 3) t;
------
------ MariaDB [test]> explain select * from (select * from t1 limit 3) t;
---
--- |
| Comments |
| Comment by Igor Babaev [ 2012-01-19 ] |
|
Re: Bad estimate of the number of rows in derived table with LIMIT clause |
| Comment by Rasmus Johansson (Inactive) [ 2012-02-20 ] |
|
Launchpad bug id: 917990 |