[MDEV-26938] support descending indexes internally in InnoDB Created: 2021-10-29 Updated: 2023-08-07 Resolved: 2022-01-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Fix Version/s: | 10.8.1 |
| Type: | Task | Priority: | Critical |
| Reporter: | Sergei Golubchik | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
see Descending attribute will only for for BTREE indexes, for everything else (fulltext, spacial, hash) it'll be ignored as before |
| Comments |
| Comment by Marko Mäkelä [ 2021-11-03 ] | |||||||||||||||
|
This cannot be tested before the HA_REVERSE_SORT flag is written to .frm files and will actually be preserved on CREATE TABLE and ALTER TABLE. See the test innodb_fts.create. | |||||||||||||||
| Comment by Marko Mäkelä [ 2021-11-04 ] | |||||||||||||||
|
The interface between TABLE_SHARE and InnoDB is highlighted in this patch, which might be useful for debugging. I corrected the implementation of dtuple_coll_eq(), so that there no longer is any EXPLAIN result difference in the test main.update_use_source. | |||||||||||||||
| Comment by Sergei Golubchik [ 2021-11-24 ] | |||||||||||||||
|
parser and frm support is pushed into bb-10.8- main.order_by and main.order_by_innodb show that ORDER BY works. | |||||||||||||||
| Comment by Marko Mäkelä [ 2021-11-25 ] | |||||||||||||||
|
I suggest that we only set the HA_REVERSE_SORT flag for B-tree indexes and never for FULLTEXT, SPATIAL, or HASH indexes that are not ordered. All issues that I was able to identify were in the SQL layer. I pushed some suggested fixes, and disabled failing test with FIXME comments that identify the root cause. One of them is that in ALTER TABLE, the Key_part_spec::asc is not being set consistently or correctly. | |||||||||||||||
| Comment by Matthias Leich [ 2021-11-26 ] | |||||||||||||||
|
| |||||||||||||||
| Comment by Matthias Leich [ 2021-11-29 ] | |||||||||||||||
|
| |||||||||||||||
| Comment by Sergei Golubchik [ 2021-12-11 ] | |||||||||||||||
|
pushed into preview-10.8- | |||||||||||||||
| Comment by Elena Stepanova [ 2021-12-14 ] | |||||||||||||||
|
The final preview branch in testing is preview-10.8- | |||||||||||||||
| Comment by Elena Stepanova [ 2022-01-26 ] | |||||||||||||||
|
The correctness part tested in the scope of |