You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Ratandeep Ratti (JIRA)" <ji...@apache.org> on 2015/04/08 11:18:12 UTC
[jira] [Updated] (PIG-4501) Write API for
Avro[Tuple|Map|Bag]wrapper classes is broken
[ https://issues.apache.org/jira/browse/PIG-4501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ratandeep Ratti updated PIG-4501:
---------------------------------
Attachment: write_interface_broken.patch
> Write API for Avro[Tuple|Map|Bag]wrapper classes is broken
> ----------------------------------------------------------
>
> Key: PIG-4501
> URL: https://issues.apache.org/jira/browse/PIG-4501
> Project: Pig
> Issue Type: Bug
> Reporter: Ratandeep Ratti
> Attachments: write_interface_broken.patch
>
>
> {{AvroTupleWrapper}}, {{AvroMapWrapper}} and {{AvroBagWrapper}} expose write APIs but their implementation is broken.
> For instance, we can do
> {code}
> Tuple t = TupleFactory.newInstnace().newTuple(1);
> t.set(0, 0);
> avroTupleWrapper.set(0, t);
> avroTupleWrapper.get(0);
> {code}
> The last line will (in most cases) fail depending upon what the avro schema is for the 0th element.
> I'm attaching a patch which highlights this more concretely. The patch only shows failures in AvroTupleWrapper but similar problems exist in corresponding Map and Bag classes
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)