ChaomingZhangCN commented on code in PR #198:
URL: https://github.com/apache/paimon-cpp/pull/198#discussion_r3800439694
##########
src/paimon/common/utils/arrow/arrow_utils.cpp:
##########
@@ -363,6 +375,25 @@ Status ArrowUtils::InnerCheckNullabilityMatch(const
std::shared_ptr<arrow::Field
auto list_array = checked_pointer_cast<arrow::ListArray>(data);
PAIMON_RETURN_NOT_OK(
InnerCheckNullabilityMatch(list_type->value_field(),
list_array->values()));
+ } else if (type->id() == arrow::Type::FIXED_SIZE_LIST) {
+ auto vector_type =
checked_pointer_cast<arrow::FixedSizeListType>(field->type());
+ auto vector_array =
checked_pointer_cast<arrow::FixedSizeListArray>(data);
+ const std::shared_ptr<arrow::Array>& values = vector_array->values();
+ if (values->null_count() != 0) {
+ int32_t vector_length = vector_type->list_size();
+ for (int64_t i = 0; i < vector_array->length(); ++i) {
+ if (vector_array->IsNull(i)) {
+ continue;
+ }
+ int64_t value_offset = (vector_array->offset() + i) *
vector_length;
+ for (int32_t j = 0; j < vector_length; ++j) {
+ if (values->IsNull(value_offset + j)) {
Review Comment:
ok
--
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]