avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikita Makeev (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-1295) null namespace within non-null is not print/parse consistent
Date Thu, 05 Mar 2015 16:32:40 GMT

    [ https://issues.apache.org/jira/browse/AVRO-1295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14349034#comment-14349034

Nikita Makeev commented on AVRO-1295:


I've found that this issue still exists if we have nested records of depth three or more.
For instance, if we have "A.space { B."" {C {} } }" it becomes "A.space { B."" { C.space {}
I ran into this when trying to use avro-mapred and org.apache.avro.mapred.Pair on avro file
with nested records and no namespace.

I've made my patch for this as well as patch for corresponding test.
I'm not sure if I should open new JIRA or re-open this one, please advise.

> null namespace within non-null is not print/parse consistent
> ------------------------------------------------------------
>                 Key: AVRO-1295
>                 URL: https://issues.apache.org/jira/browse/AVRO-1295
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>            Reporter: Doug Cutting
>            Assignee: Doug Cutting
>             Fix For: 1.7.5
>         Attachments: AVRO-1295.patch
> If a record with a null namespace is nested within a record with a non-null namespace
then, when the outer schema is printed and re-parsed, the inner schema's namespace becomes
the outer, rather than null as it should be.

This message was sent by Atlassian JIRA

View raw message