[
https://issues.apache.org/jira/browse/AVRO-786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011595#comment-13011595
]
Stu Hood commented on AVRO-786:
-------------------------------
+1
This looks great: thanks a lot Doug.
> 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
> Assignee: Doug Cutting
> Priority: Minor
> Fix For: 1.5.1
>
> 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