bkietz commented on pull request #9471:
URL: https://github.com/apache/arrow/pull/9471#issuecomment-777589915


   Consider the following test case:
   
   ```c++
   TEST(TestCompareKernel, AdHoc) {
     int32_t definitely_not_init[4];
     Int32Array null_int32s(4, Buffer::Wrap(definitely_not_init, 4), 
*AllocateEmptyBitmap(4));
   
     auto null_bools = CallFunction("equal", {
       null_int32s.data(),
       ArrayFromJSON(int32(), "[1,2,3,4]"),
     })->array_as<BooleanArray>();
   
     ASSERT_EQ(null_bools->null_count(), 4);
   }
   ```
   
   We don't make guarantees about `null_bools->Value(2)`; its value is allowed 
to be indeterminate. If we want to take responsibility for never accessing 
values under null bits that will be a much larger project


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

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


Reply via email to