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


##########
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:
   Added the comment explaining Python's normalization of -1 to -2. All 38 
partitioner tests and Ruff checks pass.



-- 
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