You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Aleksey Yeschenko (JIRA)" <ji...@apache.org> on 2015/07/22 23:23:06 UTC
[jira] [Created] (CASSANDRA-9874) Compact value columns aren't
being migrated properly in 3.0
Aleksey Yeschenko created CASSANDRA-9874:
--------------------------------------------
Summary: Compact value columns aren't being migrated properly in 3.0
Key: CASSANDRA-9874
URL: https://issues.apache.org/jira/browse/CASSANDRA-9874
Project: Cassandra
Issue Type: Bug
Reporter: Aleksey Yeschenko
Assignee: Aleksey Yeschenko
Fix For: 3.0 beta 1
To quote [Tyler|https://issues.apache.org/jira/browse/CASSANDRA-6717?focusedCommentId=14626965&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14626965]:
2.1 and 3.0 currently have different behavior around default compact value columns. When you create a table like this:
{code}
CREATE TABLE foo (
k int,
c int,
PRIMARY KEY (k, c)
) WITH COMPACT STORAGE;
{code}
2.1 will add a {{compact_value}} column to {{system.schema_columns}} with an empty {{column_name}} and a {{BytesType}} validator.
In 3.0, we instead add a {{regular}} column with the default compact value name ({{value}}) and an {{EmptyType}} validator.
The logic in 3.0 depends on having an {{EmptyType}} column (see {{CompactTables.hasEmptyCompactValue()}}) but current trunk doesn't migrate the column. {{LegacySchemaMigrator.addDefinitionForUpgrade()}} almost does what we want, but doesn't add the {{EmptyType}} column because it sees the existing {{compact_value}} column.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)