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
82e74d4c
Commit
82e74d4c
authored
Sep 10, 2012
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cassandra SE
- Make cassandra.test drop and re-crate the test keyspace.
parent
4986de84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
5 deletions
+27
-5
mysql-test/t/cassandra.test
mysql-test/t/cassandra.test
+27
-5
No files found.
mysql-test/t/cassandra.test
View file @
82e74d4c
...
...
@@ -30,11 +30,20 @@ create table t1 (rowkey char(10) primary key, column1 char(10)) engine=cassandra
thrift_host
=
'localhost'
keyspace
=
'no_such_keyspace'
;
############################################################################
## Cassandra initialization
:
## Cassandra initialization
############################################################################
--
disable_parsing
./
cqlsh
--
cql3
# Step 1: remove the keyspace that could be left over from the previous test
--
remove_files_wildcard
$MYSQLTEST_VARDIR
cassandra_test_cleanup
.
cql
--
write_file
$MYSQLTEST_VARDIR
/
cassandra_test_cleanup
.
cql
drop
keyspace
mariadbtest2
;
EOF
--
error
0
,
1
,
2
--
system
cqlsh
-
3
-
f
$MYSQLTEST_VARDIR
/
cassandra_test_cleanup
.
cql
# Step 2: create new keyspace and test column families
--
remove_files_wildcard
$MYSQLTEST_VARDIR
cassandra_test_init
.
cql
--
write_file
$MYSQLTEST_VARDIR
/
cassandra_test_init
.
cql
CREATE
KEYSPACE
mariadbtest2
WITH
strategy_class
=
'org.apache.cassandra.locator.SimpleStrategy'
...
...
@@ -55,14 +64,27 @@ create columnfamily cf6 (rowkey uuid primary key, col1 int);
create
columnfamily
cf7
(
rowkey
int
primary
key
,
boolcol
boolean
);
./
cassandra
-
cli
create
columnfamily
cf8
(
rowkey
int
primary
key
,
countercol
counter
);
EOF
--
error
0
,
1
,
2
--
system
cqlsh
-
3
-
f
$MYSQLTEST_VARDIR
/
cassandra_test_init
.
cql
# Step 3: Cassandra's CQL doesn't allow certain kinds of queries. Run them in
# CLI
--
remove_files_wildcard
$MYSQLTEST_VARDIR
cassandra_test_init
.
cli
--
write_file
$MYSQLTEST_VARDIR
/
cassandra_test_init
.
cli
use
mariadbtest2
;
CREATE
COLUMN
FAMILY
cf10
WITH
comparator
=
UTF8Type
AND
key_validation_class
=
UTF8Type
AND
default_validation_class
=
UTF8Type
;
EOF
--
error
0
,
1
,
2
--
system
cassandra
-
cli
-
f
$MYSQLTEST_VARDIR
/
cassandra_test_init
.
cli
--
enable_parsing
############################################################################
## Cassandra initialization ends
############################################################################
...
...
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