Justin Lambert created AVRO-2749: ------------------------------------ Summary: The Avro ruby gem is unable to encode hashes with non-string keys Key: AVRO-2749 URL: https://issues.apache.org/jira/browse/AVRO-2749 Project: Apache Avro Issue Type: Improvement Components: ruby Affects Versions: 1.9.2 Reporter: Justin Lambert
When trying to encode a ruby hash which uses symbols, an error is raised because the key lookup is expecting a string only. {code:java} { id: 4, name: "foo"} => The datum nil is not an example of schema "long" (Avro::IO::AvroTypeError){code} This error is a bit cryptic and since ruby supports all simple data types as hash keys, all keys should be converted to strings before encoding. -- This message was sent by Atlassian Jira (v8.3.4#803005)