Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
mariadb
Commits
82e74d4c
Commit
82e74d4c
authored
12 years ago
by
Sergey Petrunya
Browse files
Options
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
############################################################################
...
...
This diff is collapsed.
Click to expand it.
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