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] [Updated] (CASSANDRA-6071) CqlStorage loading compact table adds an extraneous field to the pig schema
Date Thu, 26 Sep 2013 18:41:08 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-6071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sam Tunnicliffe updated CASSANDRA-6071:
---------------------------------------

    Attachment: 6071-3.txt

attached rebased patch
                
> 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
>             Fix For: 1.2.11
>
>         Attachments: 6071-2.txt, 6071-3.txt, 6071.txt
>
>
> {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