cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Stupp (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-9585) Make "truncate table X" an alias for "truncate X"
Date Wed, 09 Sep 2015 09:56:46 GMT


Robert Stupp commented on CASSANDRA-9585:

Ah - missed the loop over the string array in the unit test. Sorry - you're right.

Just one nit: in NEWS.txt it should read "TRUNCATE" not "TRUNCAT"
Feel free to fix that on commit.

+1 on the patch (if cassci is fine)

> Make "truncate table X" an alias for "truncate X"
> -------------------------------------------------
>                 Key: CASSANDRA-9585
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: J.B. Langston
>            Assignee: Benjamin Lerer
>            Priority: Trivial
>             Fix For: 2.1.x
>         Attachments: 9585-2.1-V2.txt, 9585-2.1.txt
> CQL syntax is inconsistent: it's "drop table X" but "truncate X". It used to trip me
up all the time until I wrapped my brain around this inconsistency and it still triggers a
tiny bout of OCD every time I type it.  I realize it's too late to change it,  but why not
have both? "truncate table X" is also consistent with the syntax in SQL.

This message was sent by Atlassian JIRA

View raw message