You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "jorisvandenbossche (via GitHub)" <gi...@apache.org> on 2023/04/11 10:57:06 UTC

[GitHub] [arrow] jorisvandenbossche commented on a diff in pull request #35036: GH-34315: [C++] Correct is_null kernel for Union and RunEndEncoded logical nulls

jorisvandenbossche commented on code in PR #35036:
URL: https://github.com/apache/arrow/pull/35036#discussion_r1162645546


##########
cpp/src/arrow/compute/kernels/scalar_validity.cc:
##########
@@ -102,6 +104,15 @@ Status IsNullExec(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) {
     bit_util::SetBitsTo(out_bitmap, out_span->offset, out_span->length, false);
   }
 
+  const auto t = arr.type->id();
+  if (t == Type::SPARSE_UNION) {
+    union_util::SetLogicalSparseUnionNullBits(arr, out_bitmap, out_span->offset);

Review Comment:
   I followed the same pattern as we had for `SetNanBits` (used just below, i.e. updating the previously created bitmap), not that this is necessarily the best approach though



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