[MDEV-3501] LP:800535 - GROUP BY not observed with derived_merge=on and unsatisfied join condition in maria-5.3 Created: 2011-06-22 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: | Critical |
| Reporter: | Philip Stoev (Inactive) | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
Not repeatable with derived_merge=off. The following query: SELECT alias2.f1 AS field1 returns 2 NULLs even though the GROUP BY should have prevented the return of duplicate NULLs. Note that the inner ON condition is not satisfiable for any row. Only NULLs have ever been seen in the wrong result set. Explain: id select_type table type possible_keys key key_len ref rows Extra test case: CREATE TABLE t1 ( f2 int) ; CREATE TABLE t2 ( f1 int NOT NULL ) ; CREATE TABLE t3 ( f1 int, f2 int ) ; SELECT alias2.f1 AS field1 bzr version-info |
| Comments |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 800535 |