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-702) SchemaParseException: Undefined name: MyInstruction" exception when parse schema generated
Date Wed, 24 Nov 2010 22:59:17 GMT

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

Doug Cutting updated AVRO-702:
------------------------------

    Attachment: AVRO-702.patch

Here's a patch that should fix this, including a unit test.

Can you please tell me if this fixes your example too?

Thanks!

> SchemaParseException: Undefined name: MyInstruction" exception when parse schema generated
> ------------------------------------------------------------------------------------------
>
>                 Key: AVRO-702
>                 URL: https://issues.apache.org/jira/browse/AVRO-702
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.4.1
>            Reporter: Xiaolu Ye
>         Attachments: AVRO-702.patch, MyTest.java, MyTestOutput.txt, test1.avpr
>
>
> MyTest.java throws "SchemaParseException: Undefined name: MyInstruction" exception when
calling Schema.parse() given the string created by Schema.toString(). The schema is created
from the test1.avpr. The output of the Schema.toString() is in MyTestOutput.txt.
> If you could take a look at the MyTestOutput.txt, you will see Schema.parse assumes "MyInstruction"
is in "com.foo.bar" namespace, but it should be in "com.foo.basic" namespace from the model
definition (test1.avpr). Changing Schema.getQualified(String defaultSpace) to always return
full (fully qualified name) fixes the issue. 

-- 
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