cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justen Walker (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-5098) CassandraStorage doesn't decode name in widerow mode
Date Wed, 02 Jan 2013 17:08:12 GMT
Justen Walker created CASSANDRA-5098:
----------------------------------------

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


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

Mime
View raw message