Skip to content

Commit

Permalink
[parquet] Optimize parquet to use getBytesUnsafe in FixedLenBytesColu…
Browse files Browse the repository at this point in the history
…mnReader (apache#3509)
  • Loading branch information
xuzifu666 authored Jun 12, 2024
1 parent 1b5f090 commit d2f1bf1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ protected void readBatchFromDictionaryIds(
WritableBytesVector bytesVector = (WritableBytesVector) column;
for (int i = rowId; i < rowId + num; ++i) {
if (!bytesVector.isNullAt(i)) {
byte[] v = dictionary.decodeToBinary(dictionaryIds.getInt(i)).getBytes();
byte[] v = dictionary.decodeToBinary(dictionaryIds.getInt(i)).getBytesUnsafe();
bytesVector.appendBytes(i, v, 0, v.length);
}
}
Expand Down

0 comments on commit d2f1bf1

Please sign in to comment.