You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Jeremy Hanna (JIRA)" <ji...@apache.org> on 2011/04/13 03:44:05 UTC

[jira] [Commented] (CASSANDRA-2465) Pig load/storefunc loads only one schema and BytesType validation class needs fix

    [ https://issues.apache.org/jira/browse/CASSANDRA-2465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13019164#comment-13019164 ] 

Jeremy Hanna commented on CASSANDRA-2465:
-----------------------------------------

Attaching patch to make the udf context key specific to the keyspace and column family so it doesn't get overwritten.  Also changed the putNext case where the validation class is BytesType to use objToBB the way it should to handle things like Strings.

> Pig load/storefunc loads only one schema and BytesType validation class needs fix
> ---------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-2465
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2465
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Jeremy Hanna
>            Assignee: Jeremy Hanna
>              Labels: hadoop, pig
>             Fix For: 0.7.5
>
>         Attachments: 2465.txt
>
>
> With a recent optimization, it appears that the Pig load/store func gets only one schema from Cassandra and tries to apply it to all CFs in the pig script.  Also, the BytesType validation tries to cast the object in putNext as a DataByteArray and wrap it as a ByteBuffer.  Instead it should just call objToBB which should take care of it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira