korlov42 commented on code in PR #1191:
URL: https://github.com/apache/ignite-3/pull/1191#discussion_r1003295368


##########
modules/index/src/main/java/org/apache/ignite/internal/index/IndexManager.java:
##########
@@ -380,6 +403,50 @@ private SortedIndexDescriptor convert(SortedIndexView 
indexView) {
         );
     }
 
+    private CompletableFuture<BinaryTuple> toIndexKey(TableIndexView 
indexView, BinaryRow tableRow) {
+        return tableManager.tableAsyncInternal(indexView.tableId(), 
false).thenApply(table -> {
+            SchemaDescriptor descriptor = 
table.schemaView().schema(tableRow.schemaVersion());
+
+            int[] indexedColumns = resolveIndexColumns(descriptor, indexView);
+
+            if (indexedColumns == null) {
+                return null;
+            }
+
+            BinaryTupleSchema tupleSchema = 
BinaryTupleSchema.createSchema(descriptor, indexedColumns);

Review Comment:
   The second option is implemented, thanks



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