cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Yeschenko (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-12443) Remove alter type support
Date Wed, 18 Jan 2017 19:35:26 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-12443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15828632#comment-15828632
] 

Aleksey Yeschenko commented on CASSANDRA-12443:
-----------------------------------------------

Sorry about this, but it occurred to me later that {{keyValidator}} and {{comparator}} probably
shouldn't be final. We can have a frozen UDT as part of the partition key or clustering columns,
and if we add a field to that UDT, we need to update {{keyValidator}} and {{comparator}}.
Can you cook up a quick follow up patch? Assuming I'm not drunk here. Thanks.

> Remove alter type support
> -------------------------
>
>                 Key: CASSANDRA-12443
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12443
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Carl Yeksigian
>            Assignee: Carl Yeksigian
>             Fix For: 3.0.11, 3.10
>
>
> Currently, we allow altering of types. However, because we no longer store the length
for all types anymore, switching from a fixed-width to variable-width type causes issues.
commitlog playback breaking startup, queries currently in flight getting back bad results,
and special casing required to handle the changes. In addition, this would solve CASSANDRA-10309,
as there is no possibility of the types changing while an SSTableReader is open.
> For fixed-length, compatible types, the alter also doesn't add much over a cast, so users
could use that in order to retrieve the altered type.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message