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:
Juliusz Stasiewicz
2020-06-02 16:46:35 +02:00
parent 3a079cf21b
commit bf4050ed15
2 changed files with 32 additions and 0 deletions

View 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);

View 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"
}