[
https://issues.apache.org/jira/browse/AVRO-786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Doug Cutting updated AVRO-786:
------------------------------
Attachment: AVRO-786.patch
Here's a patch for this including a test.
> Equality for "order":"ignore" fields cannot use compareTo
> ---------------------------------------------------------
>
> Key: AVRO-786
> URL: https://issues.apache.org/jira/browse/AVRO-786
> Project: Avro
> Issue Type: Bug
> Reporter: Stu Hood
> Priority: Minor
> Attachments: AVRO-786.patch
>
>
> According to the spec:
> {quote}map data may not be compared. It is an error to attempt to compare
> data containing maps unless those maps are in an "order":"ignore" record
> field."{quote}
> It looks like GenericData.Record implements equals() in terms of
> GenericData.compareTo(), which will fail for any record containing a Map,
> although the spec seems to indicate that it should succeed for
> "order":"ignore".
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira