cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Witschey (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-10264) Unable to use conditions on static columns for DELETE
Date Tue, 15 Sep 2015 14:38:46 GMT

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

Jim Witschey commented on CASSANDRA-10264:
------------------------------------------

Thank you both for having a look and working on this. I just realized I wasn't clear -- I
get the {{invalid syntax}} message when executing via cqlsh, so there may be another error
there.

> Unable to use conditions on static columns for DELETE
> -----------------------------------------------------
>
>                 Key: CASSANDRA-10264
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10264
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: Cassandra 2.2.0
>            Reporter: DOAN DuyHai
>            Assignee: Benjamin Lerer
>
> {noformat}
> cqlsh:test> create table static_table(id int, stat int static, ord int, val text,
primary key(id,ord));
> cqlsh:test> insert into static_table (id,stat,ord,val) VALUES ( 1, 1, 1, '1');
> cqlsh:test> delete from static_table where id=1 and ord=1 if stat != 1;
> Invalid syntax at line 1, char 55
>   delete from static_table where id=1 and ord=1 if stat != 1;
>                                                         ^
> {noformat}
> Same error if using =, <, <=, >= or > condition
> According to [~thobbs] the syntax should work. Plus, the error message is wrong



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

Mime
View raw message