wgtmac commented on code in PR #48147:
URL: https://github.com/apache/arrow/pull/48147#discussion_r2540326167


##########
cpp/src/parquet/page_index.cc:
##########
@@ -346,7 +346,15 @@ class RowGroupPageIndexReaderImpl : public 
RowGroupPageIndexReader {
     }
   }
 
- private:
+  std::shared_ptr<Buffer> ReadIndexBuffer(int64_t offset, int64_t length,
+                                          const char* offset_kind) {
+    PARQUET_ASSIGN_OR_THROW(auto buffer, input_->ReadAt(offset, length));
+    if (buffer->size() < length) {
+      throw ParquetException("Invalid or truncated ", offset_kind);

Review Comment:
   nit: include buffer->size() and length in the error message



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to