Hello Ryan

Le 07/07/2020 à 11:21, Ryan Murray a écrit :
> 
> While trying to finish up the Union integration test between Java & C++
> https://github.com/apache/arrow/pull/7290 I came across a minor problem
> that I hope I could get some clarification on.
> 
> I have the integration test for C++ -> Java passing but Java -> C++ is
> giving me trouble. The check here:
> https://github.com/apache/arrow/blob/master/cpp/src/arrow/array/validate.cc#L368
> fails
> as the Union buffers have no validity bitmap. Skipping this check for
> Unions fixes the issue and integration tests pass.

This check fails because you are sending a non-zero null count.  Since
union arrays have no validity bitmap, they should have a zero null count
(their child arrays, however, /can/ have embedded nulls).

Regards

Antoine.

Reply via email to