[
https://issues.apache.org/jira/browse/AVRO-529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12861686#action_12861686
]
Jeff Hodges commented on AVRO-529:
----------------------------------
Could I get a more complete protocol? This one is way malformed.
> Cannot use array type in avro request
> -------------------------------------
>
> Key: AVRO-529
> URL: https://issues.apache.org/jira/browse/AVRO-529
> Project: Avro
> Issue Type: Bug
> Components: ruby
> Affects Versions: 1.4.0
> Environment: Mac OS X
> Reporter: Wanli Yang
>
> While it is OK to use array in avro response, we get the following error when
> using it in the type definition. e.g.:
> {
> "namespace": "my_namespace",
> "protocol": "MyProtocol",
> "types": [
> {
> "name": "Thing", "type": "record", "fields": [
> { "name": "id", "type": "long" },
> { "name": "other_ids", "type": "array", "items": "long" }
> ...
> /script/../vendor/gems/avro-1.4.0.pre1/lib/avro/schema.rb:78:in `real_parse':
> "array" is not a schema we know about. (Avro::SchemaParseError)
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/schema.rb:135:in
> `subparse'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/schema.rb:369:in
> `initialize'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/schema.rb:180:in
> `new'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/schema.rb:180:in
> `make_field_objects'
> from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
> `each_with_index'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/schema.rb:174:in
> `each'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/schema.rb:174:in
> `each_with_index'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/schema.rb:174:in
> `make_field_objects'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/schema.rb:200:in
> `initialize'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/schema.rb:53:in
> `new'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/schema.rb:53:in
> `real_parse'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/protocol.rb:73:in
> `parse_types'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/protocol.rb:70:in
> `collect'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/protocol.rb:70:in
> `parse_types'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/protocol.rb:54:in
> `initialize'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/protocol.rb:31:in
> `new'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/protocol.rb:31:in
> `parse'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.