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

some confusion around KEY pseudocolumn from Thrift tables

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.2.0 beta 3
    • None
    • None
    • Low

    Description

      Inserting into the schema created by cassandra-stress. cqlsh DESCRIBE TABLE says

      CREATE TABLE "Standard1" (
        "KEY" blob PRIMARY KEY,
        "C0" blob,
        "C1" blob,
        "C2" blob,
        "C3" blob,
        "C4" blob
      ) WITH COMPACT STORAGE AND
        comment='' AND
        caching='KEYS_ONLY' AND
        read_repair_chance=0.100000 AND
        dclocal_read_repair_chance=0.000000 AND
        gc_grace_seconds=864000 AND
        replicate_on_write='true';
      

      but that casing doesn't actually work:

      cqlsh:Keyspace1> insert into "Standard1" ("KEY", "C0", "C1", "C2", "C3", "C4") values ('FF', '00', '11', '22', '33', '44');
      Bad Request: Unknown identifier KEY
      

      lowercase does work:

      cqlsh:Keyspace1> insert into "Standard1" ("key", "C0", "C1", "C2", "C3", "C4") values ('FF', '00', '11', '22', '33', '44');
      

      Attachments

        1. 4955.txt
          1 kB
          Aleksey Yeschenko

        Activity

          People

            aleksey Aleksey Yeschenko
            jbellis Jonathan Ellis
            Aleksey Yeschenko
            Brandon Williams
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: