You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Shamim Ahmed (JIRA)" <ji...@apache.org> on 2012/11/12 13:53:12 UTC

[jira] [Created] (CASSANDRA-4948) inserting data into СF with cassandra compound key from PIG

Shamim Ahmed created CASSANDRA-4948:
---------------------------------------

             Summary: inserting data into СF with  cassandra compound key from PIG
                 Key: CASSANDRA-4948
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4948
             Project: Cassandra
          Issue Type: Improvement
          Components: Core, Hadoop
    Affects Versions: 1.1.5
            Reporter: Shamim Ahmed
             Fix For: 1.1.7


Support inserting data into CF with cassandra compound key. For example 
we have the CF like these
CREATE TABLE clicks (
  user_id varchar,
  time timestamp,
  url varchar,
  PRIMARY KEY (user_id, time)
) WITH COMPACT STORAGE;

Want to insert data into above CF from PIG. Currently Cassandra returing following exception
java.io.IOException: InvalidRequestException(why:Expected 8 or 0 byte long for date (4))

--
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

[jira] [Commented] (CASSANDRA-4948) inserting data into СF with cassandra compound key from PIG

Posted by "Brandon Williams (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CASSANDRA-4948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13495373#comment-13495373 ] 

Brandon Williams commented on CASSANDRA-4948:
---------------------------------------------

If you want to write composites you'll have to serialize them yourself in a UDF (see AbstractCompositeType) otherwise waiting for a cql IF/OF is probably your best bet.
                
> inserting data into СF with  cassandra compound key from PIG
> ------------------------------------------------------------
>
>                 Key: CASSANDRA-4948
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4948
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core, Hadoop
>    Affects Versions: 1.1.5
>            Reporter: Shamim Ahmed
>
> Support inserting data into CF with cassandra compound key. For example 
> we have the CF like these
> CREATE TABLE clicks (
>   user_id varchar,
>   time timestamp,
>   url varchar,
>   PRIMARY KEY (user_id, time)
> ) WITH COMPACT STORAGE;
> Want to insert data into above CF from PIG. Currently Cassandra returing following exception
> java.io.IOException: InvalidRequestException(why:Expected 8 or 0 byte long for date (4))

--
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

[jira] [Updated] (CASSANDRA-4948) inserting data into СF with cassandra compound key from PIG

Posted by "Brandon Williams (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CASSANDRA-4948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brandon Williams updated CASSANDRA-4948:
----------------------------------------

    Fix Version/s:     (was: 1.1.7)
    
> inserting data into СF with  cassandra compound key from PIG
> ------------------------------------------------------------
>
>                 Key: CASSANDRA-4948
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-4948
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core, Hadoop
>    Affects Versions: 1.1.5
>            Reporter: Shamim Ahmed
>
> Support inserting data into CF with cassandra compound key. For example 
> we have the CF like these
> CREATE TABLE clicks (
>   user_id varchar,
>   time timestamp,
>   url varchar,
>   PRIMARY KEY (user_id, time)
> ) WITH COMPACT STORAGE;
> Want to insert data into above CF from PIG. Currently Cassandra returing following exception
> java.io.IOException: InvalidRequestException(why:Expected 8 or 0 byte long for date (4))

--
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