You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Doug Cutting (JIRA)" <ji...@apache.org> on 2013/04/10 20:40:15 UTC
[jira] [Updated] (AVRO-1295) null namespace within non-null is not
print/parse consistent
[ 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