singh1203 commented on code in PR #46129: URL: https://github.com/apache/arrow/pull/46129#discussion_r2235555908
########## cpp/src/arrow/array/array_test.cc: ########## @@ -97,6 +97,27 @@ void CheckDictionaryNullCount(const std::shared_ptr<DataType>& dict_type, ASSERT_EQ(arr->data()->MayHaveLogicalNulls(), expected_may_have_logical_nulls); } +TEST_F(TestArray, TestValidateFullNullableList) { + auto f1 = field("f1", int32(), /*nullable=*/false); + auto type = list(f1); + auto array = ArrayFromJSON(type, "[[0, 1], null, [2, 5]]"); + auto array_nested_null = ArrayFromJSON(type, "[[0, 1], [3, 4], [2, null]]"); + + ASSERT_RAISES(Invalid, array->ValidateFull()); + ASSERT_RAISES(Invalid, array->ValidateFull()); +} + +TEST_F(TestArray, TestValidateFullNullableFixedSizeList) { Review Comment: Just to clarify, the type is a fixed_size_list of 2 `non-nullable` int32s `(fixed_size_list(f0, 2))`. Please let me know if you'd prefer a comment or a more explicit response. -- 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-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org