AMashenkov commented on a change in pull request #518:
URL: https://github.com/apache/ignite-3/pull/518#discussion_r799258277



##########
File path: 
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/exec/RuntimeSortedIndex.java
##########
@@ -207,7 +213,14 @@ public void close() throws Exception {
         /** {@inheritDoc} */
         @Override
         protected RowT row2indexRow(RowT bound) {
-            return bound;
+            RowT rowBound  = ectx.rowHandler().factory(Commons.typeFactory(), 
rowType).create();
+
+            ImmutableIntList keys = collation.getKeys();
+            for (int i = 0; i < keys.size(); ++i) {
+                ectx.rowHandler().set(keys.get(i), rowBound, 
ectx.rowHandler().get(i, bound));

Review comment:
       ```suggestion
               RowHandler hndl = ectx.rowHandler()
               RowT rowBound  = hndl.factory(Commons.typeFactory(), 
rowType).create();
   
               ImmutableIntList keys = collation.getKeys();
               for (int i = 0; i < keys.size(); ++i) {
                   hndl.set(keys.get(i), rowBound, hndl.get(i, bound));
   ```




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