[MDEV-11224] Select with multiple conditions (one of them IS NULL) using a composite index against a federated table returns empty result set Created: 2016-11-02 Updated: 2020-12-01 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Federated |
| Affects Version/s: | 10.2.1, 5.5, 10.0, 10.1, 10.2.2, 10.2 |
| Fix Version/s: | 10.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Wolfgang Walther | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | upstream | ||
| Description |
|
Appends earlier versions as well. Put together:
Bug does not occur, when:
Test case:
|
| Comments |
| Comment by Elena Stepanova [ 2016-11-03 ] | |||
|
Thanks for the report. FederatedX allows to see queries from local to remote in the general log. It shows that it transforms the problematic query into something really weird:
The clause USE INDEX itself is not a culprit, but it's good to make sure it's reproducible reliably. In my setup at least the query uses this index without any hints. wollewalda, did you happen to report it to upstream as well? | |||
| Comment by Wolfgang Walther [ 2016-11-05 ] | |||
|
@ElenaStepanova: No, I didn't report it upstream, as I didn't want to go through the hassle of registering with Oracle... | |||
| Comment by Elena Stepanova [ 2016-11-16 ] | |||
|
Re-filed as http://bugs.mysql.com/bug.php?id=83851 |