This is an automated email from the ASF dual-hosted git repository.
lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git
The following commit(s) were added to refs/heads/master by this push:
new d2f1bf1cb [parquet] Optimize parquet to use getBytesUnsafe in
FixedLenBytesColumnReader (#3509)
d2f1bf1cb is described below
commit d2f1bf1cb477eb6c05681c23c4f8bcd5bdcd9d0f
Author: xuzifu666 <[email protected]>
AuthorDate: Wed Jun 12 23:37:21 2024 +0800
[parquet] Optimize parquet to use getBytesUnsafe in
FixedLenBytesColumnReader (#3509)
---
.../apache/paimon/format/parquet/reader/FixedLenBytesColumnReader.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/paimon-format/src/main/java/org/apache/paimon/format/parquet/reader/FixedLenBytesColumnReader.java
b/paimon-format/src/main/java/org/apache/paimon/format/parquet/reader/FixedLenBytesColumnReader.java
index 1fc9d9e91..afce717a6 100644
---
a/paimon-format/src/main/java/org/apache/paimon/format/parquet/reader/FixedLenBytesColumnReader.java
+++
b/paimon-format/src/main/java/org/apache/paimon/format/parquet/reader/FixedLenBytesColumnReader.java
@@ -102,7 +102,7 @@ public class FixedLenBytesColumnReader<VECTOR extends
WritableColumnVector>
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);
}
}