Reputation: 21
I have a Cassandra UDT column that has about 10 attributes and now we are planning to add 3 more attributes to it. I am wondering if it would behave well if I alter the UDT type in the higher environments which has very large volume of data.
Upvotes: 1
Views: 1507
Reputation: 1
Additional pointers when you alter your table with UDT collections data type:
Click here for more information.
[Alex Ott] MAP & LIST limits are version dependent. 65,535 bytes are supported by v3.0+ while lower versions are limited to 64,000 bytes. Fix version ticket.
Upvotes: 0
Reputation: 691
Altering UDT is same as altering table, except that you cannot remove an existing UDT unless you drop all the depended tables. Also you can't alter type of a column. Below is the query how you could add new udt columnd.
alter TYPE commentmetadata ADD columnname <type>;
Upvotes: 1
Reputation: 1611
It should be safe. Just few precautions:
Upvotes: 0