[MDEV-7465] aggregate functions fail with LIMIT EXAMINED ROWS Created: 2015-01-14 Updated: 2015-02-18 Resolved: 2015-02-18 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Federico Razzoli | Assignee: | Sergei Golubchik |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | limit_examined_rows | ||
| Description |
|
With the following query, I expected to see an AVG from a sample of 5000 rows, but it fails:
The same happens with every aggregate function. I'm not sure if this is a bug or a request. |
| Comments |
| Comment by Federico Razzoli [ 2015-01-14 ] |
|
I just corrected a wrong info in the bug description. |
| Comment by Sergei Golubchik [ 2015-02-18 ] |
|
This is the intentional behavior of LIMIT ROWS EXAMINED. The documentation describes it as (emphasis is mine):
|