Reputation: 11308
There's some patchy information on the interwebs about some examples when column type can't be changed. For example, on the DataStax site there's a mention:
Or, for example, here is mentioned that you can't convert uuid
to timeuuid
. And from my personal experience, I can't change text
to timestamp
(we store dates in ISO8601 format as text, an unfortunate decision early in the project timeline).
However, I can't find a full description of which types can be converted to which, or at least which types can't be converted to which. Does anyone know?
Upvotes: 5
Views: 6332
Reputation: 6331
The 2020 answer:
This functionality seems to have been completely removed. The version 6.8 documentation states:
Cannot change the data type of a column.
Upvotes: 3
Reputation: 57748
Great question! I have to admit that I was a bit surprised at the lack of thorough documentation on this one, as well. Your question inspired me to do a little investigation and blog about it as well.
Essentially, here is a comprehensive list of Cassandra compatible CQL types (using Cassandra 2.2.0):
Notes:
Upvotes: 7