You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/10/06 15:56:38 UTC
[GitHub] [arrow] pitrou commented on a change in pull request #11341: ARROW-13843: [C++][CI] Exercise ToString / PrettyPrint in fuzzing setup
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: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org