You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Scott Carey (JIRA)" <ji...@apache.org> on 2011/04/30 00:23:03 UTC
[jira] [Updated] (AVRO-786) Equality for "order":"ignore" fields
cannot use compareTo
[ https://issues.apache.org/jira/browse/AVRO-786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott Carey updated AVRO-786:
-----------------------------
Component/s: java
> 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
> Components: java
> 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