[MDEV-9966] Remote indexing error with the FEDERATED(X) and CONNECT engines Created: 2016-04-21 Updated: 2016-04-24 Resolved: 2016-04-21 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Connect, Storage Engine - Federated |
| Affects Version/s: | 10.1.12, 5.5, 10.0, 10.1 |
| Fix Version/s: | 10.0.25, 10.1.14 |
| Type: | Bug | Priority: | Major |
| Reporter: | Olivier Bertrand | Assignee: | Olivier Bertrand |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Description |
|
T1 is filled with 4545 rows containing various id's, names and surnames.
The result is:
Now accessing the same table via FEDERATED:
0 lines are retrieved from the query:
The bug occurs in create_where_from_key that construct the query:
The above query is wrong but should anyway return all the 'PHILIPPE' for names above 'HEROS'.
Also logically returning no rows.
|
| Comments |
| Comment by Olivier Bertrand [ 2016-04-21 ] |
|
I have attached the smp.csv file that can be used to populate the t1 table. |
| Comment by Elena Stepanova [ 2016-04-21 ] |
|
Actually, Federated seems to be fine, FederatedX has the problem. bertrandop, do you prefer to have the FederatedX part extracted into a separate issue, or do you want to fix the Connect part first, and then reassign it to whoever will take care of the Federated part. |
| Comment by Olivier Bertrand [ 2016-04-21 ] |
|
Yes, a separate issue would be fine. As a matter of fact, the way CONNECT handle this was inspired by what FEDERATED did and should have worked, except for a trivial error that I could fix. Therefore the CONNECT bug is fixed but not the FEDERATEDX one. |
| Comment by Olivier Bertrand [ 2016-04-21 ] |
|
Finally, don't make them as separate issues. Looking in the FEDERATEDX code, I found the same error and I have also fixed it. As a matter of fact, I am wondering if this error were also initially in the FEDERATED code that we both copied and that it was later fixed in FEDERATED but not in FEDERATEDX? |