We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dba4ab3 commit 8bde797Copy full SHA for 8bde797
1 file changed
src/Processors/Formats/Impl/Parquet/Decoding.cpp
@@ -41,7 +41,7 @@ struct BitPackedRLEDecoder : public PageDecoder
41
requireRemainingBytes(1);
42
bit_width = size_t(UInt8(*data));
43
data += 1;
44
- if (bit_width > 8 * sizeof(T) || (bit_width == 0 && limit > 1))
+ if (bit_width > 8 * sizeof(T))
45
throw Exception(ErrorCodes::INCORRECT_DATA, "Invalid dict indices bit width: {}", bit_width);
46
}
47
else
@@ -120,7 +120,7 @@ struct BitPackedRLEDecoder : public PageDecoder
120
{
121
if (bit_width == 0)
122
123
- /// bit_width == 0 can be used for dictionary indices if the dictionary has only one value.
+ /// bit_width == 0 means all values are 0.
124
if constexpr (!skip)
125
memset(out, 0, num_values * sizeof(T));
126
return;
0 commit comments