rtpsw commented on code in PR #14352:
URL: https://github.com/apache/arrow/pull/14352#discussion_r1019610969


##########
cpp/src/arrow/compare.cc:
##########
@@ -305,6 +305,11 @@ class RangeDataEqualsImpl {
   Status Visit(const StructType& type) {
     const int32_t num_fields = type.num_fields();
 
+    if (left_.child_data.size() != static_cast<size_t>(num_fields) ||
+        right_.child_data.size() != static_cast<size_t>(num_fields)) {
+      result_ = false;
+      return Status::OK();
+    }

Review Comment:
   I'll clean this up. At the time I made this PR, the other PR wasn't merged 
yet.



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