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

Composite case-sensitive primary key: first item is not quoted in DESCRIBE TABLE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 2.1.11
    • Legacy/Tools
    • Low

    Description

      A table is created with case-sensitive composite primary key:

      CREATE TABLE foo (
       "Key1" text,
       "Key2" text,
       "Value" text
       PRIMARY KEY ("Key1", "Key2")
      );
      

      In the result of DESCRIBE TABLE foo;:

      CREATE TABLE foo (
       "Key1" text,
       "Key2" text,
       "Value" text
       PRIMARY KEY (Key1, "Key2")
      );
      

      Key1 is not quoted.
      When trying to re-create the table with this description, there is an error:

      InvalidRequest: code=2200 [Invalid query] message="Unknown definition key1 referenced in PRIMARY KEY"
      

      Attachments

        Activity

          People

            carlyeks Carl Yeksigian
            Julien Moreau Julien Moreau
            Carl Yeksigian
            T Jake Luciani
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: