vldpyatkov commented on code in PR #13742:
URL: https://github.com/apache/ignite/pull/13742#discussion_r4376831045


##########
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/trait/DistributionFunction.java:
##########
@@ -261,8 +262,8 @@ private static final class HashDistribution extends 
DistributionFunction {
                     assert F.isEmpty(assignment) || assignment.size() == 1;
             }
 
-            AffinityAdapter<Row> aff = new 
AffinityAdapter<>(affSrvc.affinity(CU.UNDEFINED_CACHE_ID), k.toIntArray(),
-                ctx.rowHandler());
+            AffinityAdapter<Row> aff = new AffinityAdapter<>(val -> 
U.safeAbs(SqlValueUtils.deepHashCode(val)),

Review Comment:
   This does not affect stored data: cache entries are still distributed using 
cache affinity. However, it may affect distributed SQL execution in a 
mixed-version cluster, if that configuration is supported.



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