Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d258a2bd
Commit
d258a2bd
authored
Aug 22, 2017
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/bb-10.2-ext' into 10.3
parents
1b7a2e4c
b0dbc707
Changes
15
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
575 additions
and
223 deletions
+575
-223
mysql-test/r/derived_cond_pushdown.result
mysql-test/r/derived_cond_pushdown.result
+236
-0
mysql-test/t/derived_cond_pushdown.test
mysql-test/t/derived_cond_pushdown.test
+36
-0
sql/sql_derived.cc
sql/sql_derived.cc
+5
-5
sql/sql_lex.h
sql/sql_lex.h
+1
-0
sql/sql_window.cc
sql/sql_window.cc
+80
-1
storage/tokudb/mysql-test/tokudb_parts/r/part_supported_sql_func_tokudb.result
...test/tokudb_parts/r/part_supported_sql_func_tokudb.result
+1
-1
storage/tokudb/mysql-test/tokudb_parts/r/partition_alter1_1_2_tokudb.result
...ql-test/tokudb_parts/r/partition_alter1_1_2_tokudb.result
+21
-21
storage/tokudb/mysql-test/tokudb_parts/r/partition_alter1_1_tokudb.result
...ysql-test/tokudb_parts/r/partition_alter1_1_tokudb.result
+12
-12
storage/tokudb/mysql-test/tokudb_parts/r/partition_alter1_2_tokudb.result
...ysql-test/tokudb_parts/r/partition_alter1_2_tokudb.result
+30
-30
storage/tokudb/mysql-test/tokudb_parts/r/partition_alter2_1_1_tokudb.result
...ql-test/tokudb_parts/r/partition_alter2_1_1_tokudb.result
+15
-15
storage/tokudb/mysql-test/tokudb_parts/r/partition_alter2_1_2_tokudb.result
...ql-test/tokudb_parts/r/partition_alter2_1_2_tokudb.result
+15
-15
storage/tokudb/mysql-test/tokudb_parts/r/partition_alter2_2_1_tokudb.result
...ql-test/tokudb_parts/r/partition_alter2_2_1_tokudb.result
+15
-15
storage/tokudb/mysql-test/tokudb_parts/r/partition_alter2_2_2_tokudb.result
...ql-test/tokudb_parts/r/partition_alter2_2_2_tokudb.result
+15
-15
storage/tokudb/mysql-test/tokudb_parts/r/partition_alter4_tokudb.result
.../mysql-test/tokudb_parts/r/partition_alter4_tokudb.result
+69
-69
storage/tokudb/mysql-test/tokudb_parts/r/partition_basic_tokudb.result
...b/mysql-test/tokudb_parts/r/partition_basic_tokudb.result
+24
-24
No files found.
mysql-test/r/derived_cond_pushdown.result
View file @
d258a2bd
...
...
@@ -9243,6 +9243,242 @@ EXPLAIN
}
}
}
set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from (select a, c,
sum(b) over (partition by a,c) as sum_b,
avg(b) over (partition by a,c) as avg_b
from t2 ) as t
where t.a > 2 and t.c in ('aa','bb','cc');
a c sum_b avg_b
7 cc 28 14.0000
7 cc 28 14.0000
3 aa 92 46.0000
7 bb 126 42.0000
4 aa 15 15.0000
7 bb 126 42.0000
7 bb 126 42.0000
3 bb 40 40.0000
3 aa 92 46.0000
select * from (select a, c,
sum(b) over (partition by a,c) as sum_b,
avg(b) over (partition by a,c) as avg_b
from t2 ) as t
where t.a > 2 and t.c in ('aa','bb','cc');
a c sum_b avg_b
7 cc 28 14.0000
7 cc 28 14.0000
3 aa 92 46.0000
7 bb 126 42.0000
4 aa 15 15.0000
7 bb 126 42.0000
7 bb 126 42.0000
3 bb 40 40.0000
3 aa 92 46.0000
explain select * from (select a, c,
sum(b) over (partition by a,c) as sum_b,
avg(b) over (partition by a,c) as avg_b
from t2 ) as t
where t.a > 2 and t.c in ('aa','bb','cc');
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY <derived2> ALL NULL NULL NULL NULL 16 Using where
2 DERIVED t2 ALL idx NULL NULL NULL 20 Using where; Using temporary
explain format=json select * from (select a, c,
sum(b) over (partition by a,c) as sum_b,
avg(b) over (partition by a,c) as avg_b
from t2 ) as t
where t.a > 2 and t.c in ('aa','bb','cc');
EXPLAIN
{
"query_block": {
"select_id": 1,
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
"rows": 16,
"filtered": 100,
"attached_condition": "t.a > 2 and t.c in ('aa','bb','cc')",
"materialized": {
"query_block": {
"select_id": 2,
"window_functions_computation": {
"sorts": {
"filesort": {
"sort_key": "t2.a, t2.c"
}
},
"temporary_table": {
"table": {
"table_name": "t2",
"access_type": "ALL",
"possible_keys": ["idx"],
"rows": 20,
"filtered": 80,
"attached_condition": "t2.a > 2 and t2.c in ('aa','bb','cc')"
}
}
}
}
}
}
}
}
set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from (select a, c,
sum(b) over (partition by a,c) as sum_b,
avg(b) over (partition by a) as avg_b
from t2 ) as t
where t.a > 2 and t.c in ('aa','bb','cc');
a c sum_b avg_b
7 cc 28 30.8000
7 cc 28 30.8000
3 aa 92 44.0000
7 bb 126 30.8000
4 aa 15 46.3333
7 bb 126 30.8000
7 bb 126 30.8000
3 bb 40 44.0000
3 aa 92 44.0000
select * from (select a, c,
sum(b) over (partition by a,c) as sum_b,
avg(b) over (partition by a) as avg_b
from t2 ) as t
where t.a > 2 and t.c in ('aa','bb','cc');
a c sum_b avg_b
7 cc 28 30.8000
7 cc 28 30.8000
3 aa 92 44.0000
7 bb 126 30.8000
4 aa 15 46.3333
7 bb 126 30.8000
7 bb 126 30.8000
3 bb 40 44.0000
3 aa 92 44.0000
explain select * from (select a, c,
sum(b) over (partition by a,c) as sum_b,
avg(b) over (partition by a) as avg_b
from t2 ) as t
where t.a > 2 and t.c in ('aa','bb','cc');
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY <derived2> ALL NULL NULL NULL NULL 16 Using where
2 DERIVED t2 ALL idx NULL NULL NULL 20 Using where; Using temporary
explain format=json select * from (select a, c,
sum(b) over (partition by a,c) as sum_b,
avg(b) over (partition by a) as avg_b
from t2 ) as t
where t.a > 2 and t.c in ('aa','bb','cc');
EXPLAIN
{
"query_block": {
"select_id": 1,
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
"rows": 16,
"filtered": 100,
"attached_condition": "t.a > 2 and t.c in ('aa','bb','cc')",
"materialized": {
"query_block": {
"select_id": 2,
"window_functions_computation": {
"sorts": {
"filesort": {
"sort_key": "t2.a, t2.c"
}
},
"temporary_table": {
"table": {
"table_name": "t2",
"access_type": "ALL",
"possible_keys": ["idx"],
"rows": 20,
"filtered": 80,
"attached_condition": "t2.a > 2"
}
}
}
}
}
}
}
}
set statement optimizer_switch='condition_pushdown_for_derived=off' for select * from (select a, c,
sum(b) over (partition by a,c) as sum_b,
avg(b) over (partition by c) as avg_b
from t2 ) as t
where t.a > 2 and t.c in ('aa','bb','cc');
a c sum_b avg_b
7 cc 28 14.0000
7 cc 28 14.0000
3 aa 92 35.4000
7 bb 126 36.5000
4 aa 15 35.4000
7 bb 126 36.5000
7 bb 126 36.5000
3 bb 40 36.5000
3 aa 92 35.4000
select * from (select a, c,
sum(b) over (partition by a,c) as sum_b,
avg(b) over (partition by c) as avg_b
from t2 ) as t
where t.a > 2 and t.c in ('aa','bb','cc');
a c sum_b avg_b
7 cc 28 14.0000
7 cc 28 14.0000
3 aa 92 35.4000
7 bb 126 36.5000
4 aa 15 35.4000
7 bb 126 36.5000
7 bb 126 36.5000
3 bb 40 36.5000
3 aa 92 35.4000
explain select * from (select a, c,
sum(b) over (partition by a,c) as sum_b,
avg(b) over (partition by c) as avg_b
from t2 ) as t
where t.a > 2 and t.c in ('aa','bb','cc');
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY <derived2> ALL NULL NULL NULL NULL 20 Using where
2 DERIVED t2 ALL NULL NULL NULL NULL 20 Using where; Using temporary
explain format=json select * from (select a, c,
sum(b) over (partition by a,c) as sum_b,
avg(b) over (partition by c) as avg_b
from t2 ) as t
where t.a > 2 and t.c in ('aa','bb','cc');
EXPLAIN
{
"query_block": {
"select_id": 1,
"table": {
"table_name": "<derived2>",
"access_type": "ALL",
"rows": 20,
"filtered": 100,
"attached_condition": "t.a > 2 and t.c in ('aa','bb','cc')",
"materialized": {
"query_block": {
"select_id": 2,
"window_functions_computation": {
"sorts": {
"filesort": {
"sort_key": "t2.a, t2.c"
},
"filesort": {
"sort_key": "t2.c"
}
},
"temporary_table": {
"table": {
"table_name": "t2",
"access_type": "ALL",
"rows": 20,
"filtered": 100,
"attached_condition": "t2.c in ('aa','bb','cc')"
}
}
}
}
}
}
}
}
drop table t1,t2;
set optimizer_switch= @save_optimizer_switch;
#
...
...
mysql-test/t/derived_cond_pushdown.test
View file @
d258a2bd
...
...
@@ -1617,6 +1617,42 @@ eval $q4;
eval
explain
$q4
;
eval
explain
format
=
json
$q4
;
let
$q5
=
select
*
from
(
select
a
,
c
,
sum
(
b
)
over
(
partition
by
a
,
c
)
as
sum_b
,
avg
(
b
)
over
(
partition
by
a
,
c
)
as
avg_b
from
t2
)
as
t
where
t
.
a
>
2
and
t
.
c
in
(
'aa'
,
'bb'
,
'cc'
);
eval
$no_pushdown
$q5
;
eval
$q5
;
eval
explain
$q5
;
eval
explain
format
=
json
$q5
;
let
$q6
=
select
*
from
(
select
a
,
c
,
sum
(
b
)
over
(
partition
by
a
,
c
)
as
sum_b
,
avg
(
b
)
over
(
partition
by
a
)
as
avg_b
from
t2
)
as
t
where
t
.
a
>
2
and
t
.
c
in
(
'aa'
,
'bb'
,
'cc'
);
eval
$no_pushdown
$q6
;
eval
$q6
;
eval
explain
$q6
;
eval
explain
format
=
json
$q6
;
let
$q7
=
select
*
from
(
select
a
,
c
,
sum
(
b
)
over
(
partition
by
a
,
c
)
as
sum_b
,
avg
(
b
)
over
(
partition
by
c
)
as
avg_b
from
t2
)
as
t
where
t
.
a
>
2
and
t
.
c
in
(
'aa'
,
'bb'
,
'cc'
);
eval
$no_pushdown
$q7
;
eval
$q7
;
eval
explain
$q7
;
eval
explain
format
=
json
$q7
;
drop
table
t1
,
t2
;
set
optimizer_switch
=
@
save_optimizer_switch
;
...
...
sql/sql_derived.cc
View file @
d258a2bd
...
...
@@ -1251,8 +1251,9 @@ bool pushdown_cond_for_derived(THD *thd, Item *cond, TABLE_LIST *derived)
{
if
(
sl
->
join
->
group_list
||
sl
->
join
->
implicit_grouping
)
continue
;
if
(
!
(
sl
->
window_specs
.
elements
==
1
&&
sl
->
window_specs
.
head
()
->
partition_list
))
ORDER
*
common_partition_fields
=
sl
->
find_common_window_func_partition_fields
(
thd
);
if
(
!
common_partition_fields
)
continue
;
extracted_cond_copy
=
!
sl
->
next_select
()
?
extracted_cond
:
...
...
@@ -1260,9 +1261,8 @@ bool pushdown_cond_for_derived(THD *thd, Item *cond, TABLE_LIST *derived)
if
(
!
extracted_cond_copy
)
continue
;
Item
*
cond_over_partition_fields
;
ORDER
*
grouping_list
=
sl
->
window_specs
.
head
()
->
partition_list
->
first
;
sl
->
collect_grouping_fields
(
thd
,
grouping_list
);
Item
*
cond_over_partition_fields
;;
sl
->
collect_grouping_fields
(
thd
,
common_partition_fields
);
sl
->
check_cond_extraction_for_grouping_fields
(
extracted_cond_copy
,
derived
);
cond_over_partition_fields
=
...
...
sql/sql_lex.h
View file @
d258a2bd
...
...
@@ -1246,6 +1246,7 @@ class st_select_lex: public st_select_lex_node
}
bool
have_window_funcs
()
const
{
return
(
window_funcs
.
elements
!=
0
);
}
ORDER
*
find_common_window_func_partition_fields
(
THD
*
thd
);
bool
cond_pushdown_is_allowed
()
const
{
return
!
olap
&&
!
explicit_limit
;
}
...
...
sql/sql_window.cc
View file @
d258a2bd
#include "sql_parse.h"
#include "sql_select.h"
#include "sql_list.h"
#include "item_windowfunc.h"
...
...
@@ -307,6 +308,83 @@ setup_windows(THD *thd, Ref_ptr_array ref_pointer_array, TABLE_LIST *tables,
DBUG_RETURN
(
0
);
}
/**
@brief
Find fields common for all partition lists used in window functions
@param thd The thread handle
@details
This function looks for the field references in the partition lists
of all window functions used in this select that are common for
all the partition lists. The function returns an ORDER list contained
all such references.The list either is specially built by the function
or is taken directly from the first window specification.
@retval
pointer to the first element of the ORDER list contained field
references common for all partition lists
0 if no such reference is found.
*/
ORDER
*
st_select_lex
::
find_common_window_func_partition_fields
(
THD
*
thd
)
{
ORDER
*
ord
;
Item
*
item
;
DBUG_ASSERT
(
window_funcs
.
elements
);
List_iterator_fast
<
Item_window_func
>
it
(
window_funcs
);
Item_window_func
*
wf
=
it
++
;
if
(
!
wf
->
window_spec
->
partition_list
)
return
0
;
List
<
Item
>
common_fields
;
uint
first_partition_elements
;
for
(
ord
=
wf
->
window_spec
->
partition_list
->
first
;
ord
;
ord
=
ord
->
next
)
{
if
((
*
ord
->
item
)
->
real_item
()
->
type
()
==
Item
::
FIELD_ITEM
)
common_fields
.
push_back
(
*
ord
->
item
,
thd
->
mem_root
);
first_partition_elements
++
;
}
if
(
window_specs
.
elements
==
1
&&
common_fields
.
elements
==
first_partition_elements
)
return
wf
->
window_spec
->
partition_list
->
first
;
List_iterator
<
Item
>
li
(
common_fields
);
while
(
common_fields
.
elements
&&
(
wf
=
it
++
))
{
if
(
!
wf
->
window_spec
->
partition_list
)
return
0
;
while
((
item
=
li
++
))
{
for
(
ord
=
wf
->
window_spec
->
partition_list
->
first
;
ord
;
ord
=
ord
->
next
)
{
if
(
item
->
eq
(
*
ord
->
item
,
false
))
break
;
}
if
(
!
ord
)
li
.
remove
();
}
li
.
rewind
();
}
if
(
!
common_fields
.
elements
)
return
0
;
if
(
common_fields
.
elements
==
first_partition_elements
)
return
wf
->
window_spec
->
partition_list
->
first
;
SQL_I_List
<
ORDER
>
res_list
;
it
.
rewind
();
wf
=
it
++
;
for
(
ord
=
wf
->
window_spec
->
partition_list
->
first
,
item
=
li
++
;
ord
;
ord
=
ord
->
next
)
{
if
(
item
!=
*
ord
->
item
)
continue
;
if
(
add_to_list
(
thd
,
res_list
,
item
,
ord
->
direction
))
return
0
;
item
=
li
++
;
}
return
res_list
.
first
;
}
/////////////////////////////////////////////////////////////////////////////
// Sorting window functions to minimize the number of table scans
// performed during the computation of these functions
...
...
@@ -327,7 +405,8 @@ int compare_order_elements(ORDER *ord1, ORDER *ord2)
Item
*
item2
=
(
*
ord2
->
item
)
->
real_item
();
DBUG_ASSERT
(
item1
->
type
()
==
Item
::
FIELD_ITEM
&&
item2
->
type
()
==
Item
::
FIELD_ITEM
);
int
cmp
=
((
Item_field
*
)
item1
)
->
field
-
((
Item_field
*
)
item2
)
->
field
;
int
cmp
=
((
Item_field
*
)
item1
)
->
field
->
field_index
-
((
Item_field
*
)
item2
)
->
field
->
field_index
;
if
(
cmp
==
0
)
{
if
(
ord1
->
direction
==
ord2
->
direction
)
...
...
storage/tokudb/mysql-test/tokudb_parts/r/part_supported_sql_func_tokudb.result
View file @
d258a2bd
...
...
@@ -2318,7 +2318,7 @@ t55 CREATE TABLE `t55` (
`col1` int(11) DEFAULT NULL
)
ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (`colint`)
SUBPARTITION BY HASH (`col1`
%
10)
SUBPARTITION BY HASH (`col1`
MOD
10)
SUBPARTITIONS 5
(PARTITION
`p0` VALUES IN (1,2,3,4,5,6,7,8,9,10) ENGINE = TokuDB,
PARTITION `p1` VALUES IN (11,12,13,14,15,16,17,18,19,20) ENGINE = TokuDB,
...
...
storage/tokudb/mysql-test/tokudb_parts/r/partition_alter1_1_2_tokudb.result
View file @
d258a2bd
...
...
@@ -1067,7 +1067,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST ((`f_int1` + `f_int2`)
%
4)
PARTITION BY LIST ((`f_int1` + `f_int2`)
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -3084,7 +3084,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int2` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -3592,7 +3592,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int2`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -5081,7 +5081,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST ((`f_int1` + `f_int2`)
%
4)
PARTITION BY LIST ((`f_int1` + `f_int2`)
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -7098,7 +7098,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int2` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -7606,7 +7606,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int2`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -9128,7 +9128,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST ((`f_int1` + `f_int2`)
%
4)
PARTITION BY LIST ((`f_int1` + `f_int2`)
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -11209,7 +11209,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int2` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -11733,7 +11733,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int2`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -13270,7 +13270,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST ((`f_int1` + `f_int2`)
%
4)
PARTITION BY LIST ((`f_int1` + `f_int2`)
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -15351,7 +15351,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int2` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -15875,7 +15875,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int2`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -17384,7 +17384,7 @@ t1 CREATE TABLE `t1` (
PRIMARY KEY (`f_int2`,`f_int1`),
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST ((`f_int1` + `f_int2`)
%
4)
PARTITION BY LIST ((`f_int1` + `f_int2`)
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -19405,7 +19405,7 @@ t1 CREATE TABLE `t1` (
PRIMARY KEY (`f_int2`,`f_int1`),
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int2` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -19914,7 +19914,7 @@ t1 CREATE TABLE `t1` (
PRIMARY KEY (`f_int2`,`f_int1`),
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int2`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -21406,7 +21406,7 @@ t1 CREATE TABLE `t1` (
PRIMARY KEY (`f_int1`,`f_int2`),
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST ((`f_int1` + `f_int2`)
%
4)
PARTITION BY LIST ((`f_int1` + `f_int2`)
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -23427,7 +23427,7 @@ t1 CREATE TABLE `t1` (
PRIMARY KEY (`f_int1`,`f_int2`),
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int2` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -23936,7 +23936,7 @@ t1 CREATE TABLE `t1` (
PRIMARY KEY (`f_int1`,`f_int2`),
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int2`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -25428,7 +25428,7 @@ t1 CREATE TABLE `t1` (
PRIMARY KEY (`f_int1`,`f_int2`),
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST ((`f_int1` + `f_int2`)
%
4)
PARTITION BY LIST ((`f_int1` + `f_int2`)
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -27449,7 +27449,7 @@ t1 CREATE TABLE `t1` (
PRIMARY KEY (`f_int1`,`f_int2`),
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int2` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -27958,7 +27958,7 @@ t1 CREATE TABLE `t1` (
PRIMARY KEY (`f_int1`,`f_int2`),
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int2`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
storage/tokudb/mysql-test/tokudb_parts/r/partition_alter1_1_tokudb.result
View file @
d258a2bd
...
...
@@ -1385,7 +1385,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (`f_int1`
%
4)
PARTITION BY LIST (`f_int1`
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -3404,7 +3404,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int1` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -3912,7 +3912,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int1`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -5401,7 +5401,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (`f_int1`
%
4)
PARTITION BY LIST (`f_int1`
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -7420,7 +7420,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int1` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -7928,7 +7928,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int1`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -9450,7 +9450,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (`f_int1`
%
4)
PARTITION BY LIST (`f_int1`
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -11533,7 +11533,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int1` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -12057,7 +12057,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int1`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -13594,7 +13594,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (`f_int1`
%
4)
PARTITION BY LIST (`f_int1`
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -15677,7 +15677,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int1` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -16201,7 +16201,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int1`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
storage/tokudb/mysql-test/tokudb_parts/r/partition_alter1_2_tokudb.result
View file @
d258a2bd
This diff is collapsed.
Click to expand it.
storage/tokudb/mysql-test/tokudb_parts/r/partition_alter2_1_1_tokudb.result
View file @
d258a2bd
...
...
@@ -994,7 +994,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (`f_int1`
%
4)
PARTITION BY LIST (`f_int1`
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -2869,7 +2869,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int1` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -3341,7 +3341,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int1`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -4800,7 +4800,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (`f_int1`
%
4)
PARTITION BY LIST (`f_int1`
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -6827,7 +6827,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int1` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -7337,7 +7337,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int1`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -8832,7 +8832,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (`f_int1`
%
4)
PARTITION BY LIST (`f_int1`
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -10859,7 +10859,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int1` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -11369,7 +11369,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int1`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -12893,7 +12893,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (`f_int1`
%
4)
PARTITION BY LIST (`f_int1`
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -14976,7 +14976,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int1` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -15500,7 +15500,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int1`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -17037,7 +17037,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (`f_int1`
%
4)
PARTITION BY LIST (`f_int1`
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -19120,7 +19120,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int1` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -19644,7 +19644,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int1`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
storage/tokudb/mysql-test/tokudb_parts/r/partition_alter2_1_2_tokudb.result
View file @
d258a2bd
...
...
@@ -990,7 +990,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST ((`f_int1` + `f_int2`)
%
4)
PARTITION BY LIST ((`f_int1` + `f_int2`)
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -2863,7 +2863,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int2` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -3335,7 +3335,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int2`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -4796,7 +4796,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST ((`f_int1` + `f_int2`)
%
4)
PARTITION BY LIST ((`f_int1` + `f_int2`)
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -6825,7 +6825,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int2` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -7336,7 +7336,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int2`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -8834,7 +8834,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST ((`f_int1` + `f_int2`)
%
4)
PARTITION BY LIST ((`f_int1` + `f_int2`)
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -10863,7 +10863,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int2` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -11374,7 +11374,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int2`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -12899,7 +12899,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST ((`f_int1` + `f_int2`)
%
4)
PARTITION BY LIST ((`f_int1` + `f_int2`)
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -14980,7 +14980,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int2` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -15504,7 +15504,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int2`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -17041,7 +17041,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST ((`f_int1` + `f_int2`)
%
4)
PARTITION BY LIST ((`f_int1` + `f_int2`)
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -19122,7 +19122,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int2` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -19646,7 +19646,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int2`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
storage/tokudb/mysql-test/tokudb_parts/r/partition_alter2_2_1_tokudb.result
View file @
d258a2bd
...
...
@@ -998,7 +998,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (`f_int1`
%
4)
PARTITION BY LIST (`f_int1`
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -2877,7 +2877,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int1` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -3351,7 +3351,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int1`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -4815,7 +4815,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (`f_int1`
%
4)
PARTITION BY LIST (`f_int1`
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -6846,7 +6846,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int1` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -7358,7 +7358,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int1`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -8859,7 +8859,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (`f_int1`
%
4)
PARTITION BY LIST (`f_int1`
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -10890,7 +10890,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int1` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -11402,7 +11402,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int1`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -12932,7 +12932,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (`f_int1`
%
4)
PARTITION BY LIST (`f_int1`
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -15019,7 +15019,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int1` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -15545,7 +15545,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int1`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -17088,7 +17088,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (`f_int1`
%
4)
PARTITION BY LIST (`f_int1`
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -19175,7 +19175,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int1` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -19701,7 +19701,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int1`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
storage/tokudb/mysql-test/tokudb_parts/r/partition_alter2_2_2_tokudb.result
View file @
d258a2bd
...
...
@@ -995,7 +995,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST ((`f_int1` + `f_int2`)
%
4)
PARTITION BY LIST ((`f_int1` + `f_int2`)
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -2886,7 +2886,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int2` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -3361,7 +3361,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int2`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -4831,7 +4831,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST ((`f_int1` + `f_int2`)
%
4)
PARTITION BY LIST ((`f_int1` + `f_int2`)
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -6878,7 +6878,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int2` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -7392,7 +7392,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int2`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -8899,7 +8899,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST ((`f_int1` + `f_int2`)
%
4)
PARTITION BY LIST ((`f_int1` + `f_int2`)
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -10946,7 +10946,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int2` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -11460,7 +11460,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
PRIMARY KEY (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int2`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -12994,7 +12994,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST ((`f_int1` + `f_int2`)
%
4)
PARTITION BY LIST ((`f_int1` + `f_int2`)
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -15093,7 +15093,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int2` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -15620,7 +15620,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int2`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -17166,7 +17166,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST ((`f_int1` + `f_int2`)
%
4)
PARTITION BY LIST ((`f_int1` + `f_int2`)
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -19265,7 +19265,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int2` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -19792,7 +19792,7 @@ t1 CREATE TABLE `t1` (
`f_charbig` varchar(1000) DEFAULT NULL,
UNIQUE KEY `uidx` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int2`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
storage/tokudb/mysql-test/tokudb_parts/r/partition_alter4_tokudb.result
View file @
d258a2bd
This diff is collapsed.
Click to expand it.
storage/tokudb/mysql-test/tokudb_parts/r/partition_basic_tokudb.result
View file @
d258a2bd
...
...
@@ -991,7 +991,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (`f_int1`
%
4)
PARTITION BY LIST (`f_int1`
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -2866,7 +2866,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int1` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -3337,7 +3337,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int1`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -4716,7 +4716,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST ((`f_int1` + `f_int2`)
%
4)
PARTITION BY LIST ((`f_int1` + `f_int2`)
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -6585,7 +6585,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int2` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -7056,7 +7056,7 @@ t1 CREATE TABLE `t1` (
`f_char2` char(20) DEFAULT NULL,
`f_charbig` varchar(1000) DEFAULT NULL
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int2`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -8515,7 +8515,7 @@ t1 CREATE TABLE `t1` (
PRIMARY KEY (`f_int2`,`f_int1`),
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (`f_int1`
%
4)
PARTITION BY LIST (`f_int1`
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -10538,7 +10538,7 @@ t1 CREATE TABLE `t1` (
PRIMARY KEY (`f_int2`,`f_int1`),
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int1` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -11046,7 +11046,7 @@ t1 CREATE TABLE `t1` (
PRIMARY KEY (`f_int2`,`f_int1`),
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int1`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -12535,7 +12535,7 @@ t1 CREATE TABLE `t1` (
PRIMARY KEY (`f_int1`,`f_int2`),
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (`f_int1`
%
4)
PARTITION BY LIST (`f_int1`
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -14558,7 +14558,7 @@ t1 CREATE TABLE `t1` (
PRIMARY KEY (`f_int1`,`f_int2`),
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int1` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -15066,7 +15066,7 @@ t1 CREATE TABLE `t1` (
PRIMARY KEY (`f_int1`,`f_int2`),
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int1`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -16587,7 +16587,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`),
UNIQUE KEY `uidx2` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (`f_int1`
%
4)
PARTITION BY LIST (`f_int1`
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -18674,7 +18674,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`),
UNIQUE KEY `uidx2` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int1` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -19198,7 +19198,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`),
UNIQUE KEY `uidx2` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int1`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -20708,7 +20708,7 @@ t1 CREATE TABLE `t1` (
PRIMARY KEY (`f_int2`,`f_int1`),
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST ((`f_int1` + `f_int2`)
%
4)
PARTITION BY LIST ((`f_int1` + `f_int2`)
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -22725,7 +22725,7 @@ t1 CREATE TABLE `t1` (
PRIMARY KEY (`f_int2`,`f_int1`),
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int2` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -23233,7 +23233,7 @@ t1 CREATE TABLE `t1` (
PRIMARY KEY (`f_int2`,`f_int1`),
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int2`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -24722,7 +24722,7 @@ t1 CREATE TABLE `t1` (
PRIMARY KEY (`f_int1`,`f_int2`),
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST ((`f_int1` + `f_int2`)
%
4)
PARTITION BY LIST ((`f_int1` + `f_int2`)
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -26739,7 +26739,7 @@ t1 CREATE TABLE `t1` (
PRIMARY KEY (`f_int1`,`f_int2`),
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int2` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -27247,7 +27247,7 @@ t1 CREATE TABLE `t1` (
PRIMARY KEY (`f_int1`,`f_int2`),
UNIQUE KEY `uidx1` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int2`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
...
...
@@ -28768,7 +28768,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`),
UNIQUE KEY `uidx2` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST ((`f_int1` + `f_int2`)
%
4)
PARTITION BY LIST ((`f_int1` + `f_int2`)
MOD
4)
(PARTITION `part_3` VALUES IN (-3) ENGINE = TokuDB,
PARTITION `part_2` VALUES IN (-2) ENGINE = TokuDB,
PARTITION `part_1` VALUES IN (-1) ENGINE = TokuDB,
...
...
@@ -30849,7 +30849,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`),
UNIQUE KEY `uidx2` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
3))
PARTITION BY LIST (abs(`f_int1`
MOD
3))
SUBPARTITION BY HASH (`f_int2` + 1)
(PARTITION `part1` VALUES IN (0)
(SUBPARTITION `sp11` ENGINE = TokuDB,
...
...
@@ -31373,7 +31373,7 @@ t1 CREATE TABLE `t1` (
UNIQUE KEY `uidx1` (`f_int1`,`f_int2`),
UNIQUE KEY `uidx2` (`f_int2`,`f_int1`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
PARTITION BY LIST (abs(`f_int1`
%
2))
PARTITION BY LIST (abs(`f_int1`
MOD
2))
SUBPARTITION BY KEY (`f_int2`)
SUBPARTITIONS 3
(PARTITION `part1` VALUES IN (0) ENGINE = TokuDB,
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment