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 2012/12/03 19:25:59 UTC

[jira] [Created] (CASSANDRA-5022) Can't prepare an UPDATE query with a counter column (CQL3)

Aleksey Yeschenko created CASSANDRA-5022:
--------------------------------------------

             Summary: Can't prepare an UPDATE query with a counter column (CQL3)
                 Key: CASSANDRA-5022
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5022
             Project: Cassandra
          Issue Type: Bug
    Affects Versions: 1.2.0 beta 2
            Reporter: Aleksey Yeschenko
            Assignee: Sylvain Lebresne
            Priority: Minor


CQL3, binary protocol:

demo(id int primary key, counter counter)

Preparing "UPDATE test.counters SET counter = counter + ? WHERE id = ?" yields 8704, "Invalid operation for commutative columnfamily counters" error.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CASSANDRA-5022) Can't prepare an UPDATE query with a counter column (CQL3)

Posted by "Aleksey Yeschenko (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-5022?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13510126#comment-13510126 ] 

Aleksey Yeschenko commented on CASSANDRA-5022:
----------------------------------------------

+1
                
> Can't prepare an UPDATE query with a counter column (CQL3)
> ----------------------------------------------------------
>
>                 Key: CASSANDRA-5022
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5022
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.2.0 beta 2
>            Reporter: Aleksey Yeschenko
>            Assignee: Sylvain Lebresne
>            Priority: Minor
>             Fix For: 1.2.0 rc1
>
>         Attachments: 5002.txt
>
>
> CQL3, binary protocol:
> demo(id int primary key, counter counter)
> Preparing "UPDATE test.counters SET counter = counter + ? WHERE id = ?" yields 8704, "Invalid operation for commutative columnfamily counters" error.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CASSANDRA-5022) Can't prepare an UPDATE query with a counter column (CQL3)

Posted by "Sylvain Lebresne (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-5022?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sylvain Lebresne updated CASSANDRA-5022:
----------------------------------------

    Attachment: 5002.txt

Attaching patch to fix that. The patch also move some small bit of validation that were done at execution time to preparation time (since there is no good reason not to do it there).
                
> Can't prepare an UPDATE query with a counter column (CQL3)
> ----------------------------------------------------------
>
>                 Key: CASSANDRA-5022
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5022
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.2.0 beta 2
>            Reporter: Aleksey Yeschenko
>            Assignee: Sylvain Lebresne
>            Priority: Minor
>             Fix For: 1.2.0 rc1
>
>         Attachments: 5002.txt
>
>
> CQL3, binary protocol:
> demo(id int primary key, counter counter)
> Preparing "UPDATE test.counters SET counter = counter + ? WHERE id = ?" yields 8704, "Invalid operation for commutative columnfamily counters" error.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CASSANDRA-5022) Can't prepare an UPDATE query with a counter column (CQL3)

Posted by "Aleksey Yeschenko (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-5022?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aleksey Yeschenko updated CASSANDRA-5022:
-----------------------------------------

    Reviewer: iamaleksey
    
> Can't prepare an UPDATE query with a counter column (CQL3)
> ----------------------------------------------------------
>
>                 Key: CASSANDRA-5022
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5022
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.2.0 beta 2
>            Reporter: Aleksey Yeschenko
>            Assignee: Sylvain Lebresne
>            Priority: Minor
>             Fix For: 1.2.0 rc1
>
>         Attachments: 5002.txt
>
>
> CQL3, binary protocol:
> demo(id int primary key, counter counter)
> Preparing "UPDATE test.counters SET counter = counter + ? WHERE id = ?" yields 8704, "Invalid operation for commutative columnfamily counters" error.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira