eugenegujing commented on code in PR #8254:
URL: https://github.com/apache/texera/pull/8254#discussion_r4521116020


##########
amber/src/main/python/core/architecture/sendsemantics/hash_based_shuffle_partitioner.py:
##########
@@ -41,4 +41,4 @@ def _route(self, tuple_: Tuple) -> int:
             if not self.hash_attribute_names
             else tuple_.get_partial_tuple(self.hash_attribute_names)
         )
-        return hash(partial_tuple) % len(self.receivers)
+        return partial_tuple.__hash__() % len(self.receivers)

Review Comment:
   Could you add a comment on why this calls `__hash__()` instead of `hash()`? 
Otherwise someone will probably change it back.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to