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

Brandon Williams reopened CASSANDRA-3886:
-----------------------------------------


We actually do need the catch-all:

{noformat}
return ByteBuffer.wrap(((DataByteArray) o).get());
{noformat}

To cast all the pig-native types like CharArray, but these are all guaranteed 
to be castable to DataByteArray.
                
> Pig can't store some types after loading them
> ---------------------------------------------
>
>                 Key: CASSANDRA-3886
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3886
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Hadoop
>    Affects Versions: 0.8.7
>            Reporter: Brandon Williams
>            Assignee: Brandon Williams
>             Fix For: 1.0.8
>
>         Attachments: 3886.txt
>
>
> In CASSANDRA-2810, we removed the decompose methods in putNext instead 
> relying on objToBB, however it cannot sufficiently handle all types.  For 
> instance, if longs are loaded and then an attempt to store them is made, this 
> causes a cast exception: java.io.IOException: java.io.IOException: 
> java.lang.ClassCastException: java.lang.Long cannot be cast to 
> org.apache.pig.data.DataByteArray Output must be (key, {(column,value)...}) 
> for ColumnFamily or (key, {supercolumn:{(column,value)...}...}) for 
> SuperColumnFamily

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to