Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
After calling Finish it may become necessary to append further elements to an array, which we don't currently support. One way to support this would be consuming the array to produce a builder with the array's elements pre-inserted.
std::shared_ptr<Array> array = get_array(); std::unique_ptr<ArrayBuilder> builder; RETURN_NOT_OK(MakeBuilder(std::move(*array), &builder));
This will be efficient if we cannibalize the array's buffers and child data when constructing the builder, which will require that the consumed array is uniquely owned.