cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy Hanna (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-2465) Pig load/storefunc loads only one schema and BytesType validation class needs fix
Date Wed, 13 Apr 2011 01:44:05 GMT

    [ 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

Mime
View raw message