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

CREATE TABLE error message swaps table and keyspace

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Low
    • Resolution: Fixed
    • Fix Version/s: 1.2.6
    • Component/s: None
    • Labels:
      None
    • Environment:

      CQLSH 3.0 on Ubuntu Linux 12.04 LTS

      Description

      When trying to create an existing table, CQLSH rightfully complains in a weird way:

      USE blink;
      CREATE TABLE tags ( tag ascii PRIMARY KEY, type ascii, label varchar, rel map<ascii, ascii> )

      Bad Request: Cannot add already existing column family "blink" to keyspace "tags"

      Keyspace and table names are swapped.

        Attachments

          Activity

            People

            • Assignee:
              jbellis Jonathan Ellis
              Reporter:
              lexlythius Lex Lythius
              Authors:
              Jonathan Ellis
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: