cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <>
Subject [jira] [Updated] (CASSANDRA-7305) CQL3, Static columns not returning rows if values are not set
Date Thu, 19 Jun 2014 17:00:29 GMT


Sylvain Lebresne updated CASSANDRA-7305:

    Attachment: 7305.txt

Attaching patch that implements what I discuss above: we don't special case queries that only
select static columns anymore (as that's arguably inconsistent and unexpected), but we allow
static columns with {{DISTINCT}} (and in that case only the very beginning of the partition
is queried).

There is also some dtests for this [here|].

> CQL3, Static columns not returning rows if values are not set
> -------------------------------------------------------------
>                 Key: CASSANDRA-7305
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Patrick Callaghan
>            Assignee: Sylvain Lebresne
>             Fix For: 2.0.9
>         Attachments: 7305.txt
> Just a quick note on static columns, if you create some cql rows using clustered columns
and don't provide a value for a static column, then selecting the row key with the (null)
static column won't return any rows.
> create table statictest( a int, b text static, c text, PRIMARY KEY (a, c));
> insert into statictest (a, c) values (1, 'test');
> select a,b from statictest;
> (0 rows)

This message was sent by Atlassian JIRA

View raw message