You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Alex Petrov (JIRA)" <ji...@apache.org> on 2016/08/10 12:57:20 UTC

[jira] [Updated] (CASSANDRA-12426) Writing a null value into a dense table results into a no-op

     [ https://issues.apache.org/jira/browse/CASSANDRA-12426?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Petrov updated CASSANDRA-12426:
------------------------------------
    Description: 
Making an insert into the dense table doesn't seem to create a live partition:

{code}
cqlsh> CREATE KEYSPACE test WITH replication = {'class': 'NetworkTopologyStrategy', 'datacenter1': '1' };
cqlsh> use test ;
cqlsh:test> CREATE TABLE a (partition text, key text, owner text, PRIMARY KEY (partition, key) ) WITH COMPACT STORAGE;
cqlsh:test> INSERT INTO a (partition, key, owner) VALUES ('a', 'b', null);
cqlsh:test> select * from a;

 partition | key | owner
-----------+-----+--------
{code}

(same behaviour on 2.2)

  was:
{code}
cqlsh> CREATE KEYSPACE test WITH replication = {'class': 'NetworkTopologyStrategy', 'datacenter1': '1' };
cqlsh> use test ;
cqlsh:test> CREATE TABLE a (partition text, key text, owner text, PRIMARY KEY (partition, key) ) WITH COMPACT STORAGE;
cqlsh:test> INSERT INTO a (partition, key, owner) VALUES ('a', 'b', null);
cqlsh:test> select * from a;

 partition | key | owner
-----------+-----+--------
{code}


> Writing a null value into a dense table results into a no-op 
> -------------------------------------------------------------
>
>                 Key: CASSANDRA-12426
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12426
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Alex Petrov
>
> Making an insert into the dense table doesn't seem to create a live partition:
> {code}
> cqlsh> CREATE KEYSPACE test WITH replication = {'class': 'NetworkTopologyStrategy', 'datacenter1': '1' };
> cqlsh> use test ;
> cqlsh:test> CREATE TABLE a (partition text, key text, owner text, PRIMARY KEY (partition, key) ) WITH COMPACT STORAGE;
> cqlsh:test> INSERT INTO a (partition, key, owner) VALUES ('a', 'b', null);
> cqlsh:test> select * from a;
>  partition | key | owner
> -----------+-----+--------
> {code}
> (same behaviour on 2.2)



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