[MDEV-12653] Cannot add index for ZIP CSV CONNECT table Created: 2017-05-01  Updated: 2017-05-11  Resolved: 2017-05-08

Status: Closed
Project: MariaDB Server
Component/s: Storage Engine - Connect
Affects Version/s: 10.1.22
Fix Version/s: 10.1.24, 10.0.31

Type: Bug Priority: Major
Reporter: Alice Sherepa Assignee: Olivier Bertrand
Resolution: Fixed Votes: 0
Labels: None


 Description   

Adding index in table c1 (zipped CSV file, CONNECT engine) shows error 'UPDATE/DELETE not supported for ZIP'
Documentation says, that optimization by indexing is possible for table types supporting it.

CREATE TABLE `c1` (
	n int not null,
	`n1` varchar(255)  NOT NULL,
 	`n2` varchar(255)  NOT NULL
) ENGINE=CONNECT  `table_type`=CSV `file_name`='/home/alice/Downloads/xx1.zip' zipped=1
-------------
Query OK, 0 rows affected (0.05 sec)
 
--------------
select * from c1
--------------
+---+------------+---------+
| n | n1         | n2      |
+---+------------+---------+
| 1 |  Alexander |  Amy    |
| 2 |  Blaze     |  Ramona |
+---+------------+---------+
2 rows in set (0.00 sec)
 
--------------
alter table c1 add index (n1)
--------------
ERROR 1296 (HY000) at line 13 in file: '/home/alice/t/c.sql': Got error 122 'UPDATE/DELETE not supported for ZIP' from CONNECT


Generated at Thu Feb 08 07:59:24 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.