Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARROW-1877: [Java] Fix incorrect equals method in JsonStringArrayList #1380

Closed
wants to merge 2 commits into from

Conversation

vkorukanti
Copy link
Member

Currently it uses containsAll which could return wrong results.
Ex. e1: [true, true, false], e2: [true, false, false].

Remove the equals method and fallback to super class method
which has the correct implementation.

Currently it uses containsAll which could return wrong results.
Ex. e1: [true, true, false], e2: [true, false, false].

Remove the equals method and fallback on super class method
which has the correct implementation.
@wesm wesm changed the title ARROW-1877: Fix incorrect equals method in JsonStringArrayList ARROW-1877: [Java] Fix incorrect equals method in JsonStringArrayList Dec 3, 2017
@wesm
Copy link
Member

wesm commented Dec 6, 2017

@BryanCutler or @elahrvivaz could you take a look at this?

Copy link
Contributor

@elahrvivaz elahrvivaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@BryanCutler
Copy link
Member

+1, is it the same for JsonStringHashMap too?

@vkorukanti
Copy link
Member Author

Comparing with AbstractMap#equals(), looks like we are not handling the some exceptions correctly. I will update the patch to remove equals in JsonStringHashMap

@wesm wesm closed this in ad454e8 Dec 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants