| 137 | } |
| 138 | |
| 139 | Status AppendEmptyValues(int64_t length) final { |
| 140 | const int8_t first_child_code = type_codes_[0]; |
| 141 | ArrayBuilder* child_builder = type_id_to_children_[first_child_code]; |
| 142 | ARROW_RETURN_NOT_OK(types_builder_.Append(length, first_child_code)); |
| 143 | ARROW_RETURN_NOT_OK( |
| 144 | offsets_builder_.Append(length, static_cast<int32_t>(child_builder->length()))); |
| 145 | // Append just a single empty value to the first child |
| 146 | return child_builder->AppendEmptyValue(); |
| 147 | } |
| 148 | |
| 149 | /// \brief Append an element to the UnionArray. This must be followed |
| 150 | /// by an append to the appropriate child builder. |
no test coverage detected