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 2010/11/30 00:21:11 UTC

[jira] Resolved: (AVRO-702) SchemaParseException: Undefined name: MyInstruction" exception when parse schema generated

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

Doug Cutting resolved AVRO-702.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5.0
         Assignee: Doug Cutting

I committed this.

> 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
>            Assignee: Doug Cutting
>             Fix For: 1.5.0
>
>         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.