cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sam Tunnicliffe (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-6071) CqlStorage loading compact table adds an extraneous field to the pig schema
Date Fri, 20 Sep 2013 17:07:53 GMT
Sam Tunnicliffe created CASSANDRA-6071:
------------------------------------------

             Summary: CqlStorage loading compact table adds an extraneous field to the pig
schema
                 Key: CASSANDRA-6071
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6071
             Project: Cassandra
          Issue Type: Bug
          Components: Hadoop
            Reporter: Sam Tunnicliffe
            Assignee: Sam Tunnicliffe
            Priority: Minor


{code}
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);
{code}

{code}
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,)
{code}


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message