Skip to content

Commit 1244161

Browse files
committed
call unalignedLoad
1 parent b2d0dda commit 1244161

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Processors/Formats/Impl/Parquet/ParquetDataBuffer.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,8 @@ class ParquetDataBuffer
5656

5757
for (std::size_t i = 0; i < count; i++)
5858
{
59-
ParquetType temp;
6059
auto offset = i * sizeof(ParquetType);
61-
62-
// necessary to prevent memory alignment issues https://github.com/ClickHouse/ClickHouse/issues/74512#issuecomment-2587260001
63-
memcpy(&temp, data + offset, sizeof(ParquetType));
64-
dst[i] = static_cast<TValue>(temp);
60+
dst[i] = unalignedLoad<TValue>(data + offset);
6561
}
6662

6763
consume(necessary_bytes);

0 commit comments

Comments
 (0)