kgusakov commented on code in PR #1932:
URL: https://github.com/apache/ignite-3/pull/1932#discussion_r1164158097
##########
modules/distribution-zones/src/main/java/org/apache/ignite/internal/distributionzones/DistributionZonesUtil.java:
##########
@@ -370,4 +372,42 @@ public static DistributionZoneConfiguration
getZoneById(DistributionZonesConfigu
return null;
}
+
+ /**
+ * Check if {@code nodeAttributes} satisfy the {@code filter}.
+ *
+ * @param nodeAttributes Key value map of node's attributes.
+ * @param filter Valid {@link JsonPath} filter of JSON fields.
+ * @return True if at least one value from {@code nodeAttributes} satisfy
{@code filter}, false otherwise.
Review Comment:
Not sure, that I understand "True if at least one value from {@code
nodeAttributes} satisfy {@code filter}" but at the same time according to the
`testNodeAttributesFilter4` attribute `dataRegionSize` satsify the filter
"$[?(@.dataRegionSize == 10 && @.region == 'US')]", but the result `False`
--
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]