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

Jonathan Ellis commented on CASSANDRA-1706:
-------------------------------------------

TRUNCATE should be a separate command.  
http://en.wikipedia.org/wiki/Truncate_%28SQL%29

> CQL deletes (aka DELETE)
> ------------------------
>
>                 Key: CASSANDRA-1706
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-1706
>             Project: Cassandra
>          Issue Type: Sub-task
>          Components: API
>    Affects Versions: 0.8
>            Reporter: Eric Evans
>            Priority: Minor
>             Fix For: 0.8
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> CQL specification and implementation for data removal.
> This corresponds to the following RPC methods:
> * remove()
> * batch_mutate() (deleting, not updating)
> * truncate() (?)
> My thoughts on the syntax are that it can probably closely mirror a subset of 
> `SELECT':
> {code:SQL}
> DELETE (FROM)? <CF> [USING CONSISTENCY.<LVL>] WHERE <EXPRESSION>
> {code}
> Optionally, you could support a form that makes the `WHERE' clause optional, 
> statements without the clause would be interpreted as a column family 
> truncation.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to