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

CqlStorage loading compact table adds an extraneous field to the pig schema

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.2.11, 2.0.2
    • None
    • None
    • Low

    Description

      CREATE TABLE t (
        key text,
        field1 int,
        field2 int
        PRIMARY KEY (key, field1)
      ) WITH COMPACT STORAGE;
      
      INSERT INTO t (key,field1,field2) VALUES ('key1',1,2);
      INSERT INTO t (key,field1,field2) VALUES ('key2',1,2);
      INSERT INTO t (key,field1,field2) VALUES ('key3',1,2);
      
      grunt> t = LOAD 'cql://ks/t' USING CqlStorage();
      grunt> describe t;                                 
      t: {key: chararray,field1: int,field2: int,value: int}
      dump t;
      (key1,1,2,)
      (key3,1,2,)
      (key2,1,2,)
      

      Attachments

        1. 6071.txt
          19 kB
          Sam Tunnicliffe
        2. 6071-2.txt
          19 kB
          Sam Tunnicliffe
        3. 6071-3.txt
          18 kB
          Sam Tunnicliffe

        Activity

          People

            samt Sam Tunnicliffe
            samt Sam Tunnicliffe
            Sam Tunnicliffe
            Alex Liu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: