avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiaolu Ye (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AVRO-702) SchemaParseException: Undefined name: MyInstruction" exception when parse schema generated
Date Fri, 26 Nov 2010 14:39:15 GMT

    [ https://issues.apache.org/jira/browse/AVRO-702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12936012#action_12936012
] 

Xiaolu Ye commented on AVRO-702:
--------------------------------

Just tested it. Patch fixed my example. 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