[MDEV-27396] DESC index attribute remains in Archive table definition, despite being apparently ignored Created: 2021-12-31  Updated: 2022-01-26  Resolved: 2022-01-26

Status: Closed
Project: MariaDB Server
Component/s: Data Definition - Create Table, Storage Engine - Archive
Affects Version/s: 10.8
Fix Version/s: 10.8.1

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None
Environment:

preview-10.8-MDEV-13756-desc-indexes 383b51d68


Issue Links:
Problem/Incident
is caused by MDEV-13756 Implement descending index: KEY (a DE... Closed

 Description   

After implementation of MDEV-13756 DESC attribute of an index in table definition is discarded/stored conditionally, depending on index type and such. For ARCHIVE tables, it is now stored, even though apparently it is not anyhow supported. Probably it would be better to keep discarding it, to avoid confusion.

preview-10.8-MDEV-13756-desc-indexes 383b51d68

MariaDB [test]> create or replace table t (t int auto_increment, key (t desc)) engine=Archive;
Query OK, 0 rows affected (0.045 sec)
 
MariaDB [test]> show create table t;
+-------+------------------------------------------------------------------------------------------------------------------------+
| Table | Create Table                                                                                                           |
+-------+------------------------------------------------------------------------------------------------------------------------+
| t     | CREATE TABLE `t` (
  `t` int(11) NOT NULL AUTO_INCREMENT,
  KEY `t` (`t` DESC)
) ENGINE=ARCHIVE DEFAULT CHARSET=latin1 |
+-------+------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.016 sec)


Generated at Thu Feb 08 09:52:36 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.