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

匆匆过客 提交于 2021-01-27 05:32:00

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/48749253/how-can-i-add-a-new-field-in-a-cassandra-table-with-default-value-whatever

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!