I'm new to cassandra and I'm trying to create a new column witch content is based on another column.
More precisely what I want to achive is, starting with following table:
ColumnA | ColumnB |
---|---|
1 | text |
I want to update the table obtaining :
ColumnA | ColumnB | ColumnC |
---|---|---|
1 | text | ColumnA value +1 |
I'm tryng something like this, after adding the columnC, update table set columnC = columnA+1 ;
but this gave me the error
Only expressions of the form X = X - are supported.
So I tryed
update table set columnC = columnA ;
but even this gave me the error
no viable alternative at input ';' (update table set columnC=[columnA];)