diff --git a/cpp/src/arrow/util/rle_encoding_internal.h b/cpp/src/arrow/util/rle_encoding_internal.h index 6f133f15b003..fab8c505120d 100644 --- a/cpp/src/arrow/util/rle_encoding_internal.h +++ b/cpp/src/arrow/util/rle_encoding_internal.h @@ -112,6 +112,12 @@ class RleDecoder { } /// Gets the next value. Returns false if there are no more. + /// + /// NB: Because the encoding only supports literal runs with lengths + /// that are multiples of 8, RleEncoder sometimes pads the end of its + /// input with zeros. Since the encoding does not differentiate between + /// input values and padding, Get() returns true even for these padding + /// values. template bool Get(T* val);