avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Cutting (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AVRO-1295) null namespace within non-null is not print/parse consistent
Date Wed, 10 Apr 2013 18:40:15 GMT

     [ https://issues.apache.org/jira/browse/AVRO-1295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Doug Cutting updated AVRO-1295:
-------------------------------

    Attachment: AVRO-1295.patch

Here's a patch that fixes this and adds a test for it.

The fix is to, when printing a schema with a null namespace nested inside a non-null namespace,
explicitly specify the empty string as its namespace in order to override the inheritance
of the enclosing namespace.
                
> 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 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

Mime
View raw message