You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Ben Walsh (JIRA)" <ji...@apache.org> on 2013/05/07 13:51:16 UTC
[jira] [Updated] (AVRO-1324) Avro-C: namespace lookup and inherited
namespaces
[ https://issues.apache.org/jira/browse/AVRO-1324?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ben Walsh updated AVRO-1324:
----------------------------
Attachment: namespace.patch
This patch also adds more testing to test_avro_schema.c so that it does a read-write-read and compares the two schemas read.
Also schema writing doesn't write the namespace where it's the same as the inherited one.
> Avro-C: namespace lookup and inherited namespaces
> -------------------------------------------------
>
> Key: AVRO-1324
> URL: https://issues.apache.org/jira/browse/AVRO-1324
> Project: Avro
> Issue Type: Improvement
> Components: c
> Reporter: Ben Walsh
> Attachments: namespace.patch
>
>
> It seems that the C version of Avro doesn't resolve fully-qualified type names, and it doesn't
> understand inherited namespaces.
> For example this doesn't work:
> {"type": "record", "namespace": "x", "name": "Y", "fields": [
> {"name": "e", "type": {"type": "record", "name": "Z", "fields": [
> {"name": "f", "type": "x.Z"}
> ]}}
> ]}
> It can't find the type "x.Z".
> (this is similar to a Ruby problem https://issues.apache.org/jira/browse/AVRO-635).
--
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