Ramin Arabbagheri
Ramin Arabbagheri

Reputation: 820

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.

Upvotes: 8

Views: 10630

Answers (1)

Chris Lohfink
Chris Lohfink

Reputation: 16430

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

Upvotes: 10

Related Questions