AMashenkov commented on a change in pull request #9540:
URL: https://github.com/apache/ignite/pull/9540#discussion_r739167835
##########
File path:
modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/IndexQueryProcessor.java
##########
@@ -123,6 +131,22 @@ public IndexQueryProcessor(IndexProcessor idxProc) {
};
}
+ /** @return Mask with {@code 1} for DESC criteria and {@code 0} for ASC
criteria. */
+ private int orderMask(UUID idxId, int critSize) {
+ Iterator<IndexKeyDefinition> it =
idxProc.indexDefinition(idxId).indexKeyDefinitions().values().iterator();
Review comment:
Let's add a check if critSize < 32 to prevent int overflow.
--
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]