Commit d1a43973 authored by Varun Gupta's avatar Varun Gupta

Adjusted result for tokudb_bugs.db756_card_part_hash_2_pick

parent 87472974
set default_storage_engine='tokudb'; set default_storage_engine='tokudb';
drop table if exists t; drop table if exists t;
set @save_use_stat_tables= @@use_stat_tables;
set @@use_stat_tables= 'COMPLEMENTARY';
create table t (id int, x int, primary key (id), key (x)) partition by hash(id) partitions 2; create table t (id int, x int, primary key (id), key (x)) partition by hash(id) partitions 2;
show indexes from t; show indexes from t;
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
...@@ -19,4 +21,5 @@ show indexes from t; ...@@ -19,4 +21,5 @@ show indexes from t;
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
t 0 PRIMARY 1 id A 7 NULL NULL BTREE t 0 PRIMARY 1 id A 7 NULL NULL BTREE
t 1 x 1 x A 7 NULL NULL YES BTREE t 1 x 1 x A 7 NULL NULL YES BTREE
set @@use_stat_tables= @save_use_stat_tables;
drop table t; drop table t;
...@@ -5,6 +5,9 @@ set default_storage_engine='tokudb'; ...@@ -5,6 +5,9 @@ set default_storage_engine='tokudb';
disable_warnings; disable_warnings;
drop table if exists t; drop table if exists t;
enable_warnings; enable_warnings;
set @save_use_stat_tables= @@use_stat_tables;
set @@use_stat_tables= 'COMPLEMENTARY';
create table t (id int, x int, primary key (id), key (x)) partition by hash(id) partitions 2; create table t (id int, x int, primary key (id), key (x)) partition by hash(id) partitions 2;
show indexes from t; show indexes from t;
insert into t values (1,1),(3,2),(5,3),(7,4); insert into t values (1,1),(3,2),(5,3),(7,4);
...@@ -12,4 +15,5 @@ insert into t values (2,1),(4,1),(6,1); ...@@ -12,4 +15,5 @@ insert into t values (2,1),(4,1),(6,1);
show indexes from t; show indexes from t;
analyze table t; analyze table t;
show indexes from t; show indexes from t;
set @@use_stat_tables= @save_use_stat_tables;
drop table t; drop table t;
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