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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
ac45ebc1
Commit
ac45ebc1
authored
Sep 15, 2014
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DB-720 test case for clustering keys on partitioned tokudb tables
parent
d85b993c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
0 deletions
+50
-0
mysql-test/suite/tokudb/r/cluster_key_part.result
mysql-test/suite/tokudb/r/cluster_key_part.result
+28
-0
mysql-test/suite/tokudb/t/cluster_key_part.test
mysql-test/suite/tokudb/t/cluster_key_part.test
+22
-0
No files found.
mysql-test/suite/tokudb/r/cluster_key_part.result
0 → 100644
View file @
ac45ebc1
set default_storage_engine='tokudb';
drop table if exists t;
create table t (
x int not null,
y int not null,
primary key(x))
partition by hash(x) partitions 2;
show create table t;
Table Create Table
t CREATE TABLE `t` (
`x` int(11) NOT NULL,
`y` int(11) NOT NULL,
PRIMARY KEY (`x`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (x)
PARTITIONS 2 */
alter table t add clustering key(y);
show create table t;
Table Create Table
t CREATE TABLE `t` (
`x` int(11) NOT NULL,
`y` int(11) NOT NULL,
PRIMARY KEY (`x`),
CLUSTERING KEY `y` (`y`)
) ENGINE=TokuDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY HASH (x)
PARTITIONS 2 */
drop table t;
mysql-test/suite/tokudb/t/cluster_key_part.test
0 → 100644
View file @
ac45ebc1
# Test that clustering keys can be created on partitioned tokudb tables
source
include
/
have_tokudb
.
inc
;
set
default_storage_engine
=
'tokudb'
;
disable_warnings
;
drop
table
if
exists
t
;
enable_warnings
;
create
table
t
(
x
int
not
null
,
y
int
not
null
,
primary
key
(
x
))
partition
by
hash
(
x
)
partitions
2
;
show
create
table
t
;
alter
table
t
add
clustering
key
(
y
);
show
create
table
t
;
drop
table
t
;
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