You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Justen Walker (JIRA)" <ji...@apache.org> on 2013/01/02 18:10:12 UTC

[jira] [Updated] (CASSANDRA-5098) CassandraStorage doesn't decode name in widerow mode

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

Justen Walker updated CASSANDRA-5098:
-------------------------------------

    Attachment: pig.log

Add Stack Trace
                
> CassandraStorage doesn't decode name in widerow mode
> ----------------------------------------------------
>
>                 Key: CASSANDRA-5098
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5098
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Hadoop
>    Affects Versions: 1.1.8
>         Environment: Ubuntu 12.04.1 x64, Cassandra 1.1.8
>            Reporter: Justen Walker
>              Labels: cassandra, hadoop, pig
>         Attachments: pig.log
>
>
> CassandraStorage doesn't decode name in widerow mode. This causes functions such as FILTER to fail with a ClassCastException, since the key is a bytearray instead of a chararray.
> {code:title=test.pig}
> DEFINE CassandraStorage org.apache.cassandra.hadoop.pig.CassandraStorage;
> A  = LOAD 'cassandra://Metrics/EventEntries?widerows=true' USING CassandraStorage();
> -- describe A --> A: {key: chararray,columns: {(name: (),value: chararray)}}
> B = FILTER A BY key matches '^user.hit';
> -- Throws CCE: org.apache.pig.data.DataByteArray cannot be cast to java.lang.String
> {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