alex-plekhanov commented on code in PR #12600:
URL: https://github.com/apache/ignite/pull/12600#discussion_r2681003803
##########
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/exec/IndexScan.java:
##########
@@ -153,14 +153,11 @@ private int[] fieldToInlinedKeysMapping(int srcFieldsCnt)
{
return null;
}
- ImmutableBitSet reqCols = requiredColumns == null ?
ImmutableBitSet.range(0, srcFieldsCnt) :
- requiredColumns;
-
int[] fieldIdxMapping = new int[rowType.getFieldCount()];
- for (int i = 0, j = reqCols.nextSetBit(0); j != -1; j =
reqCols.nextSetBit(j + 1), i++) {
+ for (int i = 0; i < fieldColMapping.length; i++) {
// j = source field index, i = target field index.
- int keyIdx = idxFieldMapping.indexOf(j);
+ int keyIdx = idxFieldMapping.indexOf(fieldColMapping[i]);
Review Comment:
Fixed
--
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]