Search code examples
cassandracql

How can I add a new field in a Cassandra table with default value "whatever"?


How can I add a new field/column in a Cassandra table with default value "whatever" ? I know how to add a new column, however, need it to be set to a certain value.


Solution

  • There is no cell default value in cassandra. Best option is to in your application identify null values and change it to the default.