AlenkaF opened a new pull request, #41957:
URL: https://github.com/apache/arrow/pull/41957

   ### Rationale for this change
   
   Offsets could have `null_count() == -1` (`kUnknownNullCount`) meaning that 
offsets might contain nulls that are not accounted for which can produce 
failures (https://github.com/apache/arrow/issues/38553) when working with 
`ListArray` or `MapArray`. `null_count()` should be replaced with 
`MayHaveNulls()`.
   
   ### What changes are included in this PR?
   
   `null_count` is replaced with `MayHaveNulls` in `ListArrayFromArray`,  
`MapArray::FromArraysInternal` and `MapArray::ValidateChildData`. Some tests 
had to be updated.
   
   ### Are these changes tested?
   
   Yes.
   
   ### Are there any user-facing changes?
   
   No.


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