pitrou commented on code in PR #12706:
URL: https://github.com/apache/arrow/pull/12706#discussion_r891411779
##########
cpp/src/arrow/array/array_test.cc:
##########
@@ -78,6 +78,24 @@ class TestArray : public ::testing::Test {
MemoryPool* pool_;
};
+TEST_F(TestArray, ValidateFullNullableList) {
+ auto f1 = field("f1", int32(), /*nullable=*/false);
+ auto ty = list(f1);
+ auto array = ArrayFromJSON(ty, "[[0, 1, 2, null], null, [4, 5]]");
+ ASSERT_RAISES(Invalid, array->ValidateFull());
Review Comment:
Can we split the checks between nested nulls and toplevel nulls just like
below?
--
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]