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-635) ruby fully-qualified namespace mixed with unqualified breaks
Date Thu, 26 Aug 2010 22:20:53 GMT

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

Doug Cutting updated AVRO-635:
------------------------------

    Attachment: py.avro

If the attached file is placed in build/interop/data, then 'rake interop' fails.

The schema in this file is:

{"type": "record", "namespace": "org.apache.avro", "name": "Interop", "fields": [
{"type": "int", "name": "intField"}, {"type": "long", "name": "longField"}, 
{"type": "string", "name": "stringField"}, {"type": "boolean", "name": "boolField"}, 
{"type": "float", "name": "floatField"}, {"type": "double", "name": "doubleField"}, 
{"type": "bytes", "name": "bytesField"}, {"type": "null", "name": "nullField"}, 
{"type": {"items": "double", "type": "array"}, "name": "arrayField"}, 
{"type": {"type": "map", "values": {"fields": [{"type": "string", "name": "label"}], "type":
"record", "name": "Foo"}}, "name": "mapField"}, 
{"type": ["boolean", "double", {"items": "bytes", "type": "array"}], "name": "unionField"},

{"type": {"symbols": ["A", "B", "C"], "type": "enum", "name": "Kind"}, "name": "enumField"},

{"type": {"type": "fixed", "name": "MD5", "size": 16}, "name": "fixedField"}, 
{"type": {"fields": [{"type": "string", "name": "label"}, {"type": {"items": "org.apache.avro.Node",
"type": "array"}, "name": "children"}], "type": "record", "name": "Node"}, "name": "recordField"}]}

The problem I think is that the namespace of Node is not defaulted to the namespace of the
containing Interop record.


> ruby fully-qualified namespace mixed with unqualified breaks
> ------------------------------------------------------------
>
>                 Key: AVRO-635
>                 URL: https://issues.apache.org/jira/browse/AVRO-635
>             Project: Avro
>          Issue Type: Bug
>            Reporter: Doug Cutting
>             Fix For: 1.4.0
>
>         Attachments: py.avro
>
>
> Data interop tests fail when ruby tries to read a python-generated data file with:
> Avro::SchemaParseError: "org.apache.avro.Node" is not a schema we know about.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message