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

Lorina Poland commented on CASSANDRA-19386:
-------------------------------------------

Ah, Blake E. helped me out with a misunderstanding. `UPDATE` does indeed only 
work with either PRIMARY KEY or an IN of PRIMARY KEYS. I will add my examples 
with an explanation of why they fail in the docs.

> BEGIN TRANSACTIONS throws error using index
> -------------------------------------------
>
>                 Key: CASSANDRA-19386
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-19386
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Accord
>            Reporter: Lorina Poland
>            Priority: Normal
>         Attachments: acid-transaction-fail.txt, acid-transaction.cql
>
>
> I'm testing BEGIN TRANSACTION...END TRANSACTION. The only examples I've seen 
> use a single PRIMARY KEY.
> I decided to test using a single PRIMARY KEY and an indexed column, which 
> seems reasonable. I only get errors. Perhaps my syntax is incorrect, but I'm 
> not sure how. 
> When I make that indexed column part of the PRIMARY KEY, the transactions 
> work just fine. 
> I've attached the CQL I'm using and the runs I've made with errors.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to