Skip to content

Commit a8c9e45

Browse files
committed
apacheGH-41188: [C++] Don't recursively produce nulls when appending nulls to a FixedSizeListBuilder
1 parent daa2efa commit a8c9e45

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎cpp/src/arrow/array/builder_nested.cc‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,13 @@ Status FixedSizeListBuilder::AppendValues(int64_t length, const uint8_t* valid_b
213213
Status FixedSizeListBuilder::AppendNull() {
214214
RETURN_NOT_OK(Reserve(1));
215215
UnsafeAppendToBitmap(false);
216-
return value_builder_->AppendNulls(list_size_);
216+
return value_builder_->AppendEmptyValues(list_size_);
217217
}
218218

219219
Status FixedSizeListBuilder::AppendNulls(int64_t length) {
220220
RETURN_NOT_OK(Reserve(length));
221221
UnsafeAppendToBitmap(length, false);
222-
return value_builder_->AppendNulls(list_size_ * length);
222+
return value_builder_->AppendEmptyValues(list_size_ * length);
223223
}
224224

225225
Status FixedSizeListBuilder::ValidateOverflow(int64_t new_elements) {

0 commit comments

Comments
 (0)