LevelDB storage engine (MDEV-3841)

[MDEV-4097] LevelDB: indexes on text/blob fields are not allowed Created: 2013-01-26  Updated: 2013-05-27  Resolved: 2013-05-27

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Technical task Priority: Minor
Reporter: Elena Stepanova Assignee: Sergei Petrunia
Resolution: Won't Fix Votes: 0
Labels: leveldb

Issue Links:
Relates

 Description   

I'm not sure whether it's supposed to be supported, but now it isn't (works with InnoDB though):

mysql> create table t1 (pk int primary key, t text, key(t(256))) engine=leveldb;
ERROR 1073 (42000): BLOB column 't' can't be used in key specification with the used table type
 
mysql> create table t1 (pk int primary key, t text, key(t(256))) engine=innodb;
Query OK, 0 rows affected (0.33 sec)
 
mysql> create table t2 (pk int primary key, b blob, key(b(256))) engine=leveldb;
ERROR 1073 (42000): BLOB column 'b' can't be used in key specification with the used table type
 
mysql> create table t2 (pk int primary key, b blob, key(b(256))) engine=innodb;
Query OK, 0 rows affected (0.10 sec)
 

revision-id: psergey@askmonty.org-20130125200959-a7gq7phbaiajqs12
revno: 4519
branch-nick: mysql-5.6-leveldb



 Comments   
Comment by Sergei Petrunia [ 2013-01-28 ]

SQL layer doesn't let the table to be created, because LevelDB SE doesn't return HA_CAN_INDEX_BLOBS from table_flags().

I think this needs to be fixed, but this is low priority.

Comment by Elena Stepanova [ 2013-02-06 ]

Reproducible on
revision-id: psergey@askmonty.org-20130201180328-ocmbh9uvcoedmihp
revno: 4591
branch-nick: mysql-5.6-leveldb

Generated at Thu Feb 08 06:53:41 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.