Setting a TTL for a specific column
Use CQL to set the TTL for data.
To change the TTL of a specific column, you must re-insert the data
with a new TTL. Cassandra upserts the column with the new TTL,
replacing the old value with the old TTL, if any exists.
Setting a TTL for a table
The CQL table definition supports the default_time_to_live property,
which applies a specific TTL to each column in the table. After the
default_time_to_live TTL value has been exceed, Cassandra tombstones
the entire table. Apply this default TTL to a table in CQL using
CREATE TABLE or ALTER TABLE.
If your table has TTL value not equal to 0 in local environment use
ALTER TABLE table_name
WITH default_time_to_live= 0
This will change table level TTL.
If column level TTL is set change the code to insert record with 0 or some higher TTL.
Details