impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Behm (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-4916: Fix maintenance of set of item sets in DisjointSet.
Date Wed, 15 Feb 2017 06:09:52 GMT
Alex Behm has posted comments on this change.

Change subject: IMPALA-4916: Fix maintenance of set of item sets in DisjointSet.

Patch Set 1:

File fe/src/main/java/org/apache/impala/common/

PS1, Line 40: 
> haha. That was useless since the hashCode() for Integer is simply its value
File fe/src/main/java/org/apache/impala/util/

PS1, Line 41: conventional
> object-quality based? maybe make it more explicit what part of the HashSet 
Expanded explanation why this does not work with HashSet.
File fe/src/main/java/org/apache/impala/util/

PS1, Line 28: that
> remove
Removed this class.

PS1, Line 29: for storing elements that are expected to be mutated after
            :  * insertion into this set
> Another way to put it is "when reference-equality is needed instead of obje
I did not know about IdentityHashMap. I think we should get rid of this new class entirely.

PS1, Line 55: private final class Wrapper<T> 
> Add a brief comment.
Removed this class.

PS1, Line 64: @SuppressWarnings("unchecked")
> Maybe you want to add a comment on why the cast is safe and therefore  it i
Removed this class.

To view, visit
To unsubscribe, visit

Gerrit-MessageType: comment
Gerrit-Change-Id: I609c8795c09becd78815605ea8e82e2f99e82212
Gerrit-PatchSet: 1
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-Owner: Alex Behm <>
Gerrit-Reviewer: Alex Behm <>
Gerrit-Reviewer: Dimitris Tsirogiannis <>
Gerrit-Reviewer: Marcel Kornacker <>
Gerrit-HasComments: Yes

View raw message