pitrou commented on a change in pull request #11341:
URL: https://github.com/apache/arrow/pull/11341#discussion_r723425918



##########
File path: cpp/src/arrow/ipc/reader.cc
##########
@@ -2023,24 +2023,37 @@ Result<std::shared_ptr<SparseTensor>> 
ReadSparseTensor(io::InputStream* file) {
 // Helpers for fuzzing
 
 namespace internal {
+namespace {
+
+Status ValidateFuzzBatch(const RecordBatch& batch) {
+  auto st = batch.ValidateFull();
+  if (st.ok()) {
+    // If the batch is valid, printing should succeed
+    batch.ToString();

Review comment:
       I don't think it's legal to optimize away random method calls. @bkietz 




-- 
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