Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-9585

Make "truncate table X" an alias for "truncate X"

    XMLWordPrintableJSON

Details

    • Low

    Description

      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.

      Attachments

        1. 9585-2.1.txt
          4 kB
          Benjamin Lerer
        2. 9585-2.1-V2.txt
          4 kB
          Benjamin Lerer
        3. 9585-2.1-V3.txt
          6 kB
          Benjamin Lerer
        4. 9585-2.2-V1.txt
          6 kB
          Benjamin Lerer
        5. 9585-3.0-V1.txt
          6 kB
          Benjamin Lerer

        Activity

          People

            blerer Benjamin Lerer
            jblangston@datastax.com J.B. Langston
            Benjamin Lerer
            Robert Stupp
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: