[ https://issues.apache.org/jira/browse/THRIFT-1331?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Armaan Sarkar updated THRIFT-1331: ---------------------------------- Attachment: THRIFT-1331_v2.patch Thanks for catching the .should. Here's a patch that fixes that. It turns out this is just restricted to the Compact Protocol which saves a few bytes by not writing metadata (key and value types) when serializing an empty map. > Ruby library deserializes an empty map to nil > --------------------------------------------- > > Key: THRIFT-1331 > URL: https://issues.apache.org/jira/browse/THRIFT-1331 > Project: Thrift > Issue Type: Bug > Components: Ruby - Library > Affects Versions: 0.7, 0.8 > Reporter: Armaan Sarkar > Assignee: Armaan Sarkar > Attachments: THRIFT-1331_v1.patch, THRIFT-1331_v2.patch > > > The problem occurs when deserializing an empty map. Instead of deserializing > to an empty hash in Ruby, Thrift currently makes it a nil object. This poses > a variety of problems and is not the intended/original behavior. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira