singh1203 commented on code in PR #46129:
URL: https://github.com/apache/arrow/pull/46129#discussion_r2234849963
##########
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());
Review Comment:
Resolved!
--
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]