avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: avdl schema compatibility
Date Mon, 27 Oct 2014 19:40:41 GMT
On Mon, Oct 27, 2014 at 11:18 AM, Camp, Jonathan
<jonathan.camp@bluecoat.com> wrote:
> But you say that this objfsptr def is valid?
>
> [{'name': 'objfsptr',
>   'type': {'fields': [{'name': 'uri', 'type': 'string'}],
>            'name': 'ObjFSPtr',
>            'namespace': 'FooServiceType',
>            'type': 'record'}}]

This is a valid parameter list for a message: a parameter name paired
with a type (a record in this case).

If you had a message 'add(int x, int y)', then the Avro parameter list
might look like:

[{"name":"x", "type":"int"}, {"name":"y", "type":"int"}]

> Is this also valid? Identical?
>
> [{'name': 'objfsptr',
>   'fields': [{'name': 'uri', 'type': 'string'}],
>   'name': 'ObjFSPtr',
>   'namespace': 'FooServiceType',
>   'type': 'record'}]

This is not a valid parameter list.

Doug

Mime
View raw message