[ https://issues.apache.org/jira/browse/CASSANDRA-5098?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brandon Williams updated CASSANDRA-5098: ---------------------------------------- Attachment: 5098.txt In widerow mode, we weren't decoding the key since we have to track it to recompose the row into a bag. Simple patch to decode the key when we add it to the tuple. > 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 > Assignee: Brandon Williams > Labels: cassandra, hadoop, pig > Attachments: 5098.txt, pig.log, test_schema.cli > > > 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