[MDEV-30395] Wrong result with semijoin and Federated as outer table Created: 2023-01-12 Updated: 2023-02-10 Resolved: 2023-01-13 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer, Storage Engine - Federated |
| Affects Version/s: | 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10, 10.11 |
| Fix Version/s: | 10.11.2, 10.5.19, 10.6.12, 10.7.8, 10.8.7, 10.9.5, 10.10.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | 11.0-sel | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
2 rows which are returned without semijoin is the expected result. Plans with semijoin enabled:
|
| Comments |
| Comment by Michael Widenius [ 2023-01-12 ] |
|
I have verified that this an old bug. Adding |
| Comment by Elena Stepanova [ 2023-01-12 ] |
|
Updated versions etc. based on the above. |
| Comment by Michael Widenius [ 2023-01-12 ] |
|
The problem was that federated engine does not support comparable rowids which was not taken into account by semijoin code. Fixed by checking that we don't use semijoin with tables that does not support comparable rowids. |
| Comment by Michael Widenius [ 2023-01-13 ] |
|
Finding the cause and finding the best way to fix this. |