pitrou commented on code in PR #12706:
URL: https://github.com/apache/arrow/pull/12706#discussion_r891413615


##########
cpp/src/arrow/array/array_union_test.cc:
##########
@@ -70,6 +70,22 @@ TEST(TestUnionArray, TestSliceEquals) {
   CheckUnion(batch->column(1));
 }
 
+TEST(TestSparseUnionArray, ValidateFullNullable) {
+  auto ty = sparse_union(
+      {field("ints", int64()), field("strs", utf8(), /*nullable*/ false)}, {2, 
7});
+  auto ints = ArrayFromJSON(int64(), "[0, 1, 2, 3]");
+  auto strs = ArrayFromJSON(utf8(), R"(["a", null, "c", "d"])");

Review Comment:
   What if instead I have `[null, "a", "c", "d"]`? Does it validate? In this 
case the null wouldn't be part of the parent (logical) array....



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