ibessonov commented on code in PR #6377: URL: https://github.com/apache/ignite-3/pull/6377#discussion_r2260430942
########## modules/storage-page-memory/src/main/java/org/apache/ignite/internal/storage/pagememory/index/sorted/comparator/JitComparatorGenerator.java: ########## @@ -359,9 +394,24 @@ private static MethodDefinition innerCompare( Variable outerEntryBaseStart = scope.declareVariable(int.class, "outerEntryBaseStart"); Variable innerEntryBaseStart = scope.declareVariable(int.class, "innerEntryBaseStart"); + Variable prefixColumns = scope.declareVariable(int.class, "prefixColumns"); + if (options.supportPrefixes()) { + // Here we calculate the number of columns that the prefix has (if we got a prefix). + body.append(new IfStatement() + .condition(outerIsPrefix) + .ifTrue(new BytecodeBlock() + // "outerSize" is reduced by 4. This variable is later used as an "end" of the last column. + .append(outerSize.set(subtract(outerSize, constantInt(Integer.BYTES)))) Review Comment: I will explain it -- 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