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

Oscar Westra van Holthe - Kind reassigned AVRO-4030:
----------------------------------------------------

    Assignee: Oscar Westra van Holthe - Kind

> Undefined schema when referencing files in same directory
> ---------------------------------------------------------
>
>                 Key: AVRO-4030
>                 URL: https://issues.apache.org/jira/browse/AVRO-4030
>             Project: Apache Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.12.0
>            Reporter: James Cook
>            Assignee: Oscar Westra van Holthe - Kind
>            Priority: Major
>
> I just tried upgrading to avro-compiler:1.12.0 (from 1.11.3) and it doesn't 
> behave in the same way.
> If I have a field with a type that the compiler hasn't already processed, 
> then it throws an error saying: "Undefined schema"
> E.g.
> {code:java}
> {
>   "type": "record",
>   "namespace": "a.b.c",
>   "name": "Example",
>   "fields": [
>     {
>       "name": "payload",
>       "type": "a.b.c.Nested"
>     }
>   ]
> } {code}
> and
> {code:java}
> {
>   "type": "record",
>   "namespace": "a.b.c",
>   "name": "Nested",
>   "fields": []
> } {code}
> fails, but if I change it to: "type": "a.b.Nested" (and move it 
> appropriately), then it works fine
> This feels like a regression, possibly caused by: 
> https://issues.apache.org/jira/browse/AVRO-3666 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to