We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2d0dda commit 1244161Copy full SHA for 1244161
src/Processors/Formats/Impl/Parquet/ParquetDataBuffer.h
@@ -56,12 +56,8 @@ class ParquetDataBuffer
56
57
for (std::size_t i = 0; i < count; i++)
58
{
59
- ParquetType temp;
60
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);
+ dst[i] = unalignedLoad<TValue>(data + offset);
65
}
66
67
consume(necessary_bytes);
0 commit comments