[
https://issues.apache.org/jira/browse/CASSANDRA-4959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13496879#comment-13496879
]
Brandon Williams commented on CASSANDRA-4959:
---------------------------------------------
The problem is both timestamp and ttl are optional, so if you remove ttl then
timestamp is correct with 'using' but if you remove timestamp then ttl needs
'using'. That said, in light of discouraging client-supplied timestamps maybe
we should just remove the timestamp portion of the help.
> CQLSH insert help has typo
> --------------------------
>
> Key: CASSANDRA-4959
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4959
> Project: Cassandra
> Issue Type: Improvement
> Components: Documentation & website
> Affects Versions: 1.2.0 beta 2
> Reporter: Edward Capriolo
>
> [cqlsh 2.3.0 | Cassandra 1.2.0-beta2-SNAPSHOT | CQL spec 3.0.0 | Thrift
> protocol 19.35.0]
> Use HELP for help.
> cqlsh> help INSERT
> INSERT INTO [<keyspace>.]<tablename>
> ( <colname1>, <colname2> [, <colname3> [, ...]] )
> VALUES ( <colval1>, <colval2> [, <colval3> [, ...]] )
> [USING TIMESTAMP <timestamp>]
> [AND TTL <timeToLive]];
> Should be.
> {quote}
> [AND TTL <timeToLive>]];
> {quote}
> Also it was not clear to me initially that you could just do:
> {quote}
> USING TTL <timeToLive>
> {quote}
> But maybe that is just me.
--
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