[MDEV-11315] Wrong result (missing rows) and unexpected warnings with condition_pushdown_for_derived Created: 2016-11-18 Updated: 2016-11-23 Resolved: 2016-11-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer, Views |
| Affects Version/s: | 10.2 |
| Fix Version/s: | 10.2.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Igor Babaev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | regression-10.2 | ||
| Description |
|
Note:
(Please note the strange warnings – the datetime column does not participate in the query at all).
|
| Comments |
| Comment by Igor Babaev [ 2016-11-21 ] | ||||
|
The query
works fine. The difference is that we have t1.b->used_tables() == OUTER_REF_TABLE_BIT (and this is correct) while in the query from the test case after the merge of the derived table t1 we have | ||||
| Comment by Igor Babaev [ 2016-11-21 ] | ||||
|
The same problem we can see for mergeable views:
| ||||
| Comment by Igor Babaev [ 2016-11-23 ] | ||||
|
The fix for this bug was pushed into the 10.2 tree. |