avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lewis John Mcgibbney <lewis.mcgibb...@gmail.com>
Subject Re: Schema inheritance
Date Thu, 20 Feb 2014 19:45:14 GMT
Hey,
Did you check out the IDL documentation?
http://avro.apache.org/docs/current/idl.html
I had similar data modeling issues a while back and this helped out A LOT.
hth


On Thu, Feb 20, 2014 at 6:58 PM, Software Dev <static.void.dev@gmail.com>wrote:

> Is there anyway to include the fields of another schema into our schema
> WITHOUT it creating a nested record?
>
>
> {
>     "type": "record",
>     "name": "Parent",
>     "fields" : [
>         {
>             "name": "foo",
>             "type": "string"
>         }
>     ]
> }
>
> {
>     "type": "record",
>     "name": "Child",
>     "fields" : [
>         {
>             "name": "bar",
>             "type": "string"
>         },
> // I dont want it nested like this
> //        {
> //            "name": "parent",
> //            "type": "Parent"
> //        }
>     ]
> }
>
> So in this example is there a way to have child include both the "bar"
> field as well as "foo" without it nested under parent?
>
> Thanks
>
>


-- 
*Lewis*

Mime
View raw message