Commit 81b5e7dd authored by Sergei Petrunia's avatar Sergei Petrunia

MDEV-7317: Make an index ignorable to the optimizer

Update test results: rocksdb.type_blob_indexes, rocksdb.type_text_indexes
parent c22e6eed
...@@ -11,8 +11,8 @@ PRIMARY KEY b (b(32)) ...@@ -11,8 +11,8 @@ PRIMARY KEY b (b(32))
Warnings: Warnings:
Warning 1280 Name 'b' ignored for PRIMARY key. Warning 1280 Name 'b' ignored for PRIMARY key.
SHOW INDEX IN t1; SHOW INDEX IN t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment Ignored
t1 0 PRIMARY 1 b A 1000 32 NULL LSMTREE t1 0 PRIMARY 1 b A 1000 32 NULL LSMTREE NO
INSERT INTO t1 (b,t,m,l) VALUES INSERT INTO t1 (b,t,m,l) VALUES
('','','',''), ('','','',''),
('a','b','c','d'), ('a','b','c','d'),
...@@ -49,10 +49,10 @@ pk INT AUTO_INCREMENT PRIMARY KEY, ...@@ -49,10 +49,10 @@ pk INT AUTO_INCREMENT PRIMARY KEY,
UNIQUE INDEX l_t (l(256),t(64)) UNIQUE INDEX l_t (l(256),t(64))
) ENGINE=rocksdb; ) ENGINE=rocksdb;
SHOW INDEX IN t1; SHOW INDEX IN t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment Ignored
t1 0 PRIMARY 1 pk # # NULL NULL # # t1 0 PRIMARY 1 pk # # NULL NULL # # NO
t1 0 l_t 1 l # # 256 NULL # # t1 0 l_t 1 l # # 256 NULL # # NO
t1 0 l_t 2 t # # 64 NULL # # t1 0 l_t 2 t # # 64 NULL # # NO
INSERT INTO t1 (b,t,m,l) VALUES INSERT INTO t1 (b,t,m,l) VALUES
('','','',''), ('','','',''),
('a','b','c','d'), ('a','b','c','d'),
...@@ -105,9 +105,9 @@ pk INT AUTO_INCREMENT PRIMARY KEY, ...@@ -105,9 +105,9 @@ pk INT AUTO_INCREMENT PRIMARY KEY,
INDEX (m(128)) INDEX (m(128))
) ENGINE=rocksdb; ) ENGINE=rocksdb;
SHOW INDEX IN t1; SHOW INDEX IN t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment Ignored
t1 0 PRIMARY 1 pk A 1000 NULL NULL LSMTREE t1 0 PRIMARY 1 pk A 1000 NULL NULL LSMTREE NO
t1 1 m 1 m A 500 128 NULL YES LSMTREE t1 1 m 1 m A 500 128 NULL YES LSMTREE NO
INSERT INTO t1 (b,t,m,l) VALUES INSERT INTO t1 (b,t,m,l) VALUES
('','','',''), ('','','',''),
('a','b','c','d'), ('a','b','c','d'),
......
...@@ -11,8 +11,8 @@ PRIMARY KEY t (t(32)) ...@@ -11,8 +11,8 @@ PRIMARY KEY t (t(32))
Warnings: Warnings:
Warning 1280 Name 't' ignored for PRIMARY key. Warning 1280 Name 't' ignored for PRIMARY key.
SHOW INDEX IN t1; SHOW INDEX IN t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment Ignored
t1 0 PRIMARY 1 t A 1000 32 NULL LSMTREE t1 0 PRIMARY 1 t A 1000 32 NULL LSMTREE NO
INSERT INTO t1 (t,tt,m,l) VALUES INSERT INTO t1 (t,tt,m,l) VALUES
('','','',''), ('','','',''),
('a','b','c','d'), ('a','b','c','d'),
...@@ -60,9 +60,9 @@ INDEX (m(128)) ...@@ -60,9 +60,9 @@ INDEX (m(128))
Warnings: Warnings:
Warning 1280 Name 'mt' ignored for PRIMARY key. Warning 1280 Name 'mt' ignored for PRIMARY key.
SHOW INDEX IN t1; SHOW INDEX IN t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment Ignored
t1 0 PRIMARY 1 pk A 1000 1 NULL LSMTREE t1 0 PRIMARY 1 pk A 1000 1 NULL LSMTREE NO
t1 1 m 1 m A 500 128 NULL YES LSMTREE t1 1 m 1 m A 500 128 NULL YES LSMTREE NO
INSERT INTO t1 (t,tt,m,l,pk) VALUES INSERT INTO t1 (t,tt,m,l,pk) VALUES
('','','','','0'), ('','','','','0'),
('a','b','c','d','1'), ('a','b','c','d','1'),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment