mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
test/cql: Check that CDC for counters is disallowed
This test must be removed once we have implementation of CDC for tables with counter columns.
This commit is contained in:
7
test/cql/cdc_disallow_cdc_for_counters_test.cql
Normal file
7
test/cql/cdc_disallow_cdc_for_counters_test.cql
Normal file
@@ -0,0 +1,7 @@
|
||||
create table tb1 (pk int primary key, c1 counter) with cdc = {'enabled': true};
|
||||
|
||||
create table tb2 (pk int primary key, c1 counter);
|
||||
alter table tb2 with cdc = {'enabled': true};
|
||||
|
||||
create table tb3 (pk int primary key) with cdc = {'enabled': true};
|
||||
alter table tb3 add (c1 counter);
|
||||
25
test/cql/cdc_disallow_cdc_for_counters_test.result
Normal file
25
test/cql/cdc_disallow_cdc_for_counters_test.result
Normal file
@@ -0,0 +1,25 @@
|
||||
create table tb1 (pk int primary key, c1 counter) with cdc = {'enabled': true};
|
||||
{
|
||||
"message" : "exceptions::invalid_request_exception (Cannot create CDC log for table ks.tb1. Counter support not implemented)",
|
||||
"status" : "error"
|
||||
}
|
||||
|
||||
create table tb2 (pk int primary key, c1 counter);
|
||||
{
|
||||
"status" : "ok"
|
||||
}
|
||||
alter table tb2 with cdc = {'enabled': true};
|
||||
{
|
||||
"message" : "exceptions::invalid_request_exception (Cannot create CDC log for table ks.tb2. Counter support not implemented)",
|
||||
"status" : "error"
|
||||
}
|
||||
|
||||
create table tb3 (pk int primary key) with cdc = {'enabled': true};
|
||||
{
|
||||
"status" : "ok"
|
||||
}
|
||||
alter table tb3 add (c1 counter);
|
||||
{
|
||||
"message" : "exceptions::invalid_request_exception (Cannot create CDC log for table ks.tb3. Counter support not implemented)",
|
||||
"status" : "error"
|
||||
}
|
||||
Reference in New Issue
Block a user