You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Wanli Yang (JIRA)" <ji...@apache.org> on 2010/04/30 23:56:53 UTC
[jira] Created: (AVRO-535) default does not work
default does not work
---------------------
Key: AVRO-535
URL: https://issues.apache.org/jira/browse/AVRO-535
Project: Avro
Issue Type: Bug
Components: ruby
Affects Versions: 1.4.0
Environment: Mac OSX
Reporter: Wanli Yang
The default value does not work. I get the following errors:
./vendor/gems/avro-1.4.0.pre1/lib/avro/io.rb:544:in `write_data': The datum {"id"=>3} is not an example of schema [{"name":"other","default":"foo","type":"string"},{"name":"id","type":"long"}] (Avro::IO::AvroTypeError)
from ./vendor/gems/avro-1.4.0.pre1/lib/avro/io.rb:539:in `write'
from ./vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:160:in `write_request'
from ./vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:155:in `write_call_request'
from ./vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:105:in `request'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (AVRO-535) default does not work
Posted by "Jeff Hodges (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12862893#action_12862893 ]
Jeff Hodges commented on AVRO-535:
----------------------------------
In the future, a little more context would be great but I get what you mean. On my plate.
> default does not work
> ---------------------
>
> Key: AVRO-535
> URL: https://issues.apache.org/jira/browse/AVRO-535
> Project: Avro
> Issue Type: Bug
> Components: ruby
> Affects Versions: 1.4.0
> Environment: Mac OSX
> Reporter: Wanli Yang
> Assignee: Jeff Hodges
>
> The default value does not work. I get the following errors:
> ./vendor/gems/avro-1.4.0.pre1/lib/avro/io.rb:544:in `write_data': The datum {"id"=>3} is not an example of schema [{"name":"other","default":"foo","type":"string"},{"name":"id","type":"long"}] (Avro::IO::AvroTypeError)
> from ./vendor/gems/avro-1.4.0.pre1/lib/avro/io.rb:539:in `write'
> from ./vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:160:in `write_request'
> from ./vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:155:in `write_call_request'
> from ./vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:105:in `request'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (AVRO-535) default does not work
Posted by "Jeff Hodges (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeff Hodges resolved AVRO-535.
------------------------------
Resolution: Invalid
Marking this as invalid. The spec only wants defaults used on read, not write.
> default does not work
> ---------------------
>
> Key: AVRO-535
> URL: https://issues.apache.org/jira/browse/AVRO-535
> Project: Avro
> Issue Type: Bug
> Components: ruby
> Affects Versions: 1.4.0
> Environment: Mac OSX
> Reporter: Wanli Yang
> Assignee: Jeff Hodges
>
> this is the request:
> "get_foo": {
> "request": [
> { "name": "id", "type": "long" },
> { "name": "foo", "type": "string", "default": "bar" }
> ],
> "response": { "type": "array", "items": "long" }
> },
> This is the client code:
> avro.request('get_foo', 'id' => 3)
> And this is the error the client gets:
> ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/io.rb:544:in `write_data': The datum {"id"=>3} is not an example of schema [{"name":"id","type":"long"},{"name":"foo","default":"bar","type":"string"}] (Avro::IO::AvroTypeError)
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/io.rb:539:in `write'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:160:in `write_request'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:155:in `write_call_request'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:105:in `request'
> And nil does not work either:
> client code:
> avro.request('get_foo', {'id' => 3, 'foo' => nil})
> error the client gets:
> ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/io.rb:544:in `write_data': The datum {"id"=>3, "foo"=>nil} is not an example of schema [{"name":"id","type":"long"},{"name":"foo","default":"bar","type":"string"}] (Avro::IO::AvroTypeError)
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/io.rb:539:in `write'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:160:in `write_request'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:155:in `write_call_request'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:105:in `request'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (AVRO-535) default does not work
Posted by "Jeff Hodges (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeff Hodges reassigned AVRO-535:
--------------------------------
Assignee: Jeff Hodges
> default does not work
> ---------------------
>
> Key: AVRO-535
> URL: https://issues.apache.org/jira/browse/AVRO-535
> Project: Avro
> Issue Type: Bug
> Components: ruby
> Affects Versions: 1.4.0
> Environment: Mac OSX
> Reporter: Wanli Yang
> Assignee: Jeff Hodges
>
> The default value does not work. I get the following errors:
> ./vendor/gems/avro-1.4.0.pre1/lib/avro/io.rb:544:in `write_data': The datum {"id"=>3} is not an example of schema [{"name":"other","default":"foo","type":"string"},{"name":"id","type":"long"}] (Avro::IO::AvroTypeError)
> from ./vendor/gems/avro-1.4.0.pre1/lib/avro/io.rb:539:in `write'
> from ./vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:160:in `write_request'
> from ./vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:155:in `write_call_request'
> from ./vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:105:in `request'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (AVRO-535) default does not work
Posted by "Wanli Yang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wanli Yang updated AVRO-535:
----------------------------
Description:
this is the request:
"get_foo": {
"request": [
{ "name": "id", "type": "long" },
{ "name": "foo", "type": "string", "default": "bar" }
],
"response": { "type": "array", "items": "long" }
},
This is the client code:
avro.request('get_foo', 'id' => 3)
And this is the error the client gets:
./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/io.rb:544:in `write_data': The datum {"id"=>3} is not an example of schema [{"name":"id","type":"long"},{"name":"foo","default":"bar","type":"string"}] (Avro::IO::AvroTypeError)
from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/io.rb:539:in `write'
from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:160:in `write_request'
from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:155:in `write_call_request'
from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:105:in `request'
And nil does not work either:
client code:
avro.request('get_foo', {'id' => 3, 'foo' => nil})
error the client gets:
./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/io.rb:544:in `write_data': The datum {"id"=>3, "foo"=>nil} is not an example of schema [{"name":"id","type":"long"},{"name":"foo","default":"bar","type":"string"}] (Avro::IO::AvroTypeError)
from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/io.rb:539:in `write'
from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:160:in `write_request'
from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:155:in `write_call_request'
from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:105:in `request'
was:
this is the request:
"get_foo": {
"request": [
{ "name": "id", "type": "long" },
{ "name": "foo", "type": "string", "default": "bar" }
],
"response": { "type": "array", "items": "long" }
},
This is the client code:
avro.request('get_foo', 'id' => 3)
And this is the error the client gets:
./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/io.rb:544:in `write_data': The datum {"id"=>3} is not an example of schema [{"name":"id","type":"long"},{"name":"foo","default":"bar","type":"string"}] (Avro::IO::AvroTypeError)
from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/io.rb:539:in `write'
from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:160:in `write_request'
from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:155:in `write_call_request'
from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:105:in `request'
> default does not work
> ---------------------
>
> Key: AVRO-535
> URL: https://issues.apache.org/jira/browse/AVRO-535
> Project: Avro
> Issue Type: Bug
> Components: ruby
> Affects Versions: 1.4.0
> Environment: Mac OSX
> Reporter: Wanli Yang
> Assignee: Jeff Hodges
>
> this is the request:
> "get_foo": {
> "request": [
> { "name": "id", "type": "long" },
> { "name": "foo", "type": "string", "default": "bar" }
> ],
> "response": { "type": "array", "items": "long" }
> },
> This is the client code:
> avro.request('get_foo', 'id' => 3)
> And this is the error the client gets:
> ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/io.rb:544:in `write_data': The datum {"id"=>3} is not an example of schema [{"name":"id","type":"long"},{"name":"foo","default":"bar","type":"string"}] (Avro::IO::AvroTypeError)
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/io.rb:539:in `write'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:160:in `write_request'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:155:in `write_call_request'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:105:in `request'
> And nil does not work either:
> client code:
> avro.request('get_foo', {'id' => 3, 'foo' => nil})
> error the client gets:
> ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/io.rb:544:in `write_data': The datum {"id"=>3, "foo"=>nil} is not an example of schema [{"name":"id","type":"long"},{"name":"foo","default":"bar","type":"string"}] (Avro::IO::AvroTypeError)
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/io.rb:539:in `write'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:160:in `write_request'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:155:in `write_call_request'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:105:in `request'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (AVRO-535) default does not work
Posted by "Wanli Yang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AVRO-535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wanli Yang updated AVRO-535:
----------------------------
Description:
this is the request:
"get_foo": {
"request": [
{ "name": "id", "type": "long" },
{ "name": "foo", "type": "string", "default": "bar" }
],
"response": { "type": "array", "items": "long" }
},
This is the client code:
avro.request('get_foo', 'id' => 3)
And this is the error the client gets:
./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/io.rb:544:in `write_data': The datum {"id"=>3} is not an example of schema [{"name":"id","type":"long"},{"name":"foo","default":"bar","type":"string"}] (Avro::IO::AvroTypeError)
from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/io.rb:539:in `write'
from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:160:in `write_request'
from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:155:in `write_call_request'
from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:105:in `request'
was:
The default value does not work. I get the following errors:
./vendor/gems/avro-1.4.0.pre1/lib/avro/io.rb:544:in `write_data': The datum {"id"=>3} is not an example of schema [{"name":"other","default":"foo","type":"string"},{"name":"id","type":"long"}] (Avro::IO::AvroTypeError)
from ./vendor/gems/avro-1.4.0.pre1/lib/avro/io.rb:539:in `write'
from ./vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:160:in `write_request'
from ./vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:155:in `write_call_request'
from ./vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:105:in `request'
> default does not work
> ---------------------
>
> Key: AVRO-535
> URL: https://issues.apache.org/jira/browse/AVRO-535
> Project: Avro
> Issue Type: Bug
> Components: ruby
> Affects Versions: 1.4.0
> Environment: Mac OSX
> Reporter: Wanli Yang
> Assignee: Jeff Hodges
>
> this is the request:
> "get_foo": {
> "request": [
> { "name": "id", "type": "long" },
> { "name": "foo", "type": "string", "default": "bar" }
> ],
> "response": { "type": "array", "items": "long" }
> },
> This is the client code:
> avro.request('get_foo', 'id' => 3)
> And this is the error the client gets:
> ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/io.rb:544:in `write_data': The datum {"id"=>3} is not an example of schema [{"name":"id","type":"long"},{"name":"foo","default":"bar","type":"string"}] (Avro::IO::AvroTypeError)
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/io.rb:539:in `write'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:160:in `write_request'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:155:in `write_call_request'
> from ./script/../vendor/gems/avro-1.4.0.pre1/lib/avro/ipc.rb:105:in `request'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.