zstan commented on code in PR #6001: URL: https://github.com/apache/ignite-3/pull/6001#discussion_r2137684485
########## modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/trait/DistributionTrait.java: ########## @@ -131,13 +195,15 @@ public boolean equals(Object o) { /** {@inheritDoc} */ @Override public int hashCode() { - return Objects.hash(function, keys); + return Objects.hash(function, keys, zoneId); } /** {@inheritDoc} */ @Override public String toString() { - return function.name() + (function.type() == HASH_DISTRIBUTED ? keys : ""); + return function.name() + + (function.type() == HASH_DISTRIBUTED ? keys : "") + + (isAffinityDistribution() ? "[zoneId=" + zoneId + ", tableId=" + tableId + ']' : ""); Review Comment: probably _tableId_ need to be added here too ? -- 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: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org