Skip to content

Commit 215f059

Browse files
committed
Tweak comment
1 parent 5eee684 commit 215f059

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/src/parquet/decoder.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -776,8 +776,8 @@ class PlainByteArrayDecoder : public PlainDecoder<ByteArrayType> {
776776
// This precondition follows from those two checks.
777777
DCHECK_GE(len_, 4);
778778
auto value_len = SafeLoadAs<int32_t>(data_);
779-
// `value_len <= estimated_data_length` is stricter than `value_len <= len_ - 4`
780-
// due to the way `estimated_data_length` is computed.
779+
// This check also ensures that `value_len <= len_ - 4` due to the way
780+
// `estimated_data_length` is computed.
781781
if (ARROW_PREDICT_FALSE(value_len < 0 || value_len > estimated_data_length)) {
782782
return Status::Invalid(
783783
"Invalid or truncated PLAIN-encoded BYTE_ARRAY data");

0 commit comments

Comments
 (0)