Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Processors/Formats/Impl/Parquet/Decoding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ struct BitPackedRLEDecoder : public PageDecoder
requireRemainingBytes(1);
bit_width = size_t(UInt8(*data));
data += 1;
if (bit_width > 8 * sizeof(T) || (bit_width == 0 && limit > 1))
if (bit_width > 8 * sizeof(T))
throw Exception(ErrorCodes::INCORRECT_DATA, "Invalid dict indices bit width: {}", bit_width);
}
else
Expand Down Expand Up @@ -120,7 +120,7 @@ struct BitPackedRLEDecoder : public PageDecoder
{
if (bit_width == 0)
{
/// bit_width == 0 can be used for dictionary indices if the dictionary has only one value.
/// bit_width == 0 means all values are 0.
if constexpr (!skip)
memset(out, 0, num_values * sizeof(T));
return;
Expand Down
Loading