[MDEV-16057] Using optimization Splitting with Group BY we see an unnecessary attached condition t1.pk IS NOT NULL where pk is a PRIMARY KEY Created: 2018-04-30 Updated: 2018-05-06 Resolved: 2018-05-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.3 |
| Fix Version/s: | 10.3.7 |
| Type: | Bug | Priority: | Major |
| Reporter: | Varun Gupta (Inactive) | Assignee: | Varun Gupta (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Here is the test (picked from derived_cond_pushdown.test in the main suite)
Now when i run this analyze command
the output is
So if you look closely at the "outer_ref_condition": "t1.pk1 is not null". But as we see in the create table statement t1.pk1 is a primary key and so it is guaranteed to be NOT NULL so this is a useless condition to have. |
| Comments |
| Comment by Varun Gupta (Inactive) [ 2018-04-30 ] |
|
Patch |
| Comment by Sergei Petrunia [ 2018-05-04 ] |
|
Ok to push |