You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Ted Malaska (JIRA)" <ji...@apache.org> on 2013/02/06 16:37:13 UTC
[jira] [Commented] (AVRO-1242) AvroTrevniOutputFormat Metadata
filter subString bug
[ https://issues.apache.org/jira/browse/AVRO-1242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13572506#comment-13572506 ]
Ted Malaska commented on AVRO-1242:
-----------------------------------
BTW This is my first time even submitting a patch to Avro. Any and all help will be very much appreciated.
> AvroTrevniOutputFormat Metadata filter subString bug
> ----------------------------------------------------
>
> Key: AVRO-1242
> URL: https://issues.apache.org/jira/browse/AVRO-1242
> Project: Avro
> Issue Type: Bug
> Reporter: Ted Malaska
> Attachments: AVRO-1242.patch
>
>
> In AvroTrevniOutputFormat there seems to be a cut and post error in the metadata filtering. The result is not "trevni.meta." metadatas will successfully get to the writer.
> if (e.getKey().startsWith(META_PREFIX))
> meta.put(e.getKey().substring(AvroJob.TEXT_PREFIX.length()),
> e.getValue().getBytes(MetaData.UTF8));
> META_PREFIX = "trevni.meta."
> TEXT_PREFIX = "avro.meta.text."
--
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