You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Brandon Williams (JIRA)" <ji...@apache.org> on 2012/11/12 17:19:12 UTC
[jira] [Commented] (CASSANDRA-4948) inserting data into СF with cassandra compound key from PIG
[ 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