[MDEV-27589] OQGRAPH returns a different result set if backing table has descending PK Created: 2022-01-23 Updated: 2023-11-28 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - OQGRAPH |
| Affects Version/s: | 10.8 |
| Fix Version/s: | 10.11 |
| Type: | Bug | Priority: | Trivial |
| Reporter: | Elena Stepanova | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
I am not sure at all that it is a problem. The meaning of linkid value seems obscure; according to some ancient OQGraph presentation I've found online, its meaning "varies depending on latch", and for breadth_first it is "returned as connected vertex", which doesn't help me much. In any case, apparently it's not just an ordinal number as it appears to be at the first glance. In the unlikely case that somebody is ever interested in a combination of OQGraph and descending keys on backing tables, they are welcome to investigate it further and close as not-a-bug or fix, depending on the outcome. Otherwise I am just recording it for posterity.
The above test case has a DESC part in the primary key, and it returns this dataset:
The differenc e
That is, the 2nd and 3rd rows have linkid swapped. Reproducible with at least InnoDB and MyISAM for the backing table. |