mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-29 19:21:01 +00:00
cql_query_test: Move a testcase elsewhere in file
Somehow this test case sits in the middle of LIKE-operator tests: test_alter_type_on_compact_storage_with_no_regular_columns_does_not_crash Move it so LIKE test cases are contiguous. Signed-off-by: Dejan Mircevski <dejan@scylladb.com>
This commit is contained in:
@@ -3963,14 +3963,6 @@ SEASTAR_TEST_CASE(test_like_operator_varchar) {
|
||||
});
|
||||
}
|
||||
|
||||
SEASTAR_TEST_CASE(test_alter_type_on_compact_storage_with_no_regular_columns_does_not_crash) {
|
||||
return do_with_cql_env_thread([] (cql_test_env& e) {
|
||||
cquery_nofail(e, "CREATE TYPE my_udf (first text);");
|
||||
cquery_nofail(e, "create table z (pk int, ck frozen<my_udf>, primary key(pk, ck)) with compact storage;");
|
||||
cquery_nofail(e, "alter type my_udf add test_int int;");
|
||||
});
|
||||
}
|
||||
|
||||
SEASTAR_TEST_CASE(test_like_operator_on_nonstring) {
|
||||
return do_with_cql_env_thread([] (cql_test_env& e) {
|
||||
cquery_nofail(e, "create table t (k int primary key, s text)");
|
||||
@@ -3998,3 +3990,11 @@ SEASTAR_TEST_CASE(test_like_operator_on_token) {
|
||||
exception_predicate::message_contains("token function"));
|
||||
});
|
||||
}
|
||||
|
||||
SEASTAR_TEST_CASE(test_alter_type_on_compact_storage_with_no_regular_columns_does_not_crash) {
|
||||
return do_with_cql_env_thread([] (cql_test_env& e) {
|
||||
cquery_nofail(e, "CREATE TYPE my_udf (first text);");
|
||||
cquery_nofail(e, "create table z (pk int, ck frozen<my_udf>, primary key(pk, ck)) with compact storage;");
|
||||
cquery_nofail(e, "alter type my_udf add test_int int;");
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user