gortiz commented on code in PR #13303: URL: https://github.com/apache/pinot/pull/13303#discussion_r1670142982
########## pinot-common/src/main/java/org/apache/pinot/common/datablock/BaseDataBlock.java: ########## @@ -290,84 +232,117 @@ public ByteArray getBytes(int rowId, int colId) { @Override public int[] getIntArray(int rowId, int colId) { - int length = positionOffsetInVariableBufferAndGetLength(rowId, colId); - int[] ints = new int[length]; - for (int i = 0; i < length; i++) { - ints[i] = _variableSizeData.getInt(); + int offsetInFixed = getOffsetInFixedBuffer(rowId, colId); + int size = _fixedSizeData.getInt(offsetInFixed + 4); Review Comment: It is the size of the array. For the context, the older `positionOffsetInVariableBufferAndGetLength` (which was equal in columnar and row versions) was: ``` @Override protected int positionOffsetInVariableBufferAndGetLength(int rowId, int colId) { int offset = getOffsetInFixedBuffer(rowId, colId); _variableSizeData.position(_fixedSizeData.getInt(offset)); return _fixedSizeData.getInt(offset + 4); } ``` -- 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: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org