Github user d2r commented on a diff in the pull request:

    https://github.com/apache/storm/pull/641#discussion_r35127032
  
    --- Diff: 
storm-core/src/jvm/backtype/storm/grouping/PartialKeyGrouping.java ---
    @@ -65,7 +66,11 @@ public void prepare(WorkerTopologyContext context, 
GlobalStreamId stream, List<I
                     List<Object> selectedFields = outFields.select(fields, 
values);
                     ByteBuffer out = ByteBuffer.allocate(selectedFields.size() 
* 4);
                     for (Object o: selectedFields) {
    -                    out.putInt(o.hashCode());
    +                    if (o instanceof Object[]) {
    --- End diff --
    
    I see. Yes, I could add this.  However, since we do not currently do this 
in backtype.storm.tuple it would be inconsistent.
    
    In b.s.tuple, I always get a List<Object>.  I convert it to an array there 
because the call to Arrays#deepHashCode is simple.  If a tuple is _itself_ a 
List, then Arrays#hashCode will call List#hashCode on it.



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to