| 616 | } |
| 617 | |
| 618 | virtual ::arrow::Result<std::shared_ptr<ChunkedArray>> AssembleArray( |
| 619 | std::shared_ptr<ArrayData> data) { |
| 620 | if (field_->type()->id() == ::arrow::Type::MAP) { |
| 621 | // Error out if data is not map-compliant instead of aborting in MakeArray below |
| 622 | RETURN_NOT_OK(::arrow::MapArray::ValidateChildData(data->child_data)); |
| 623 | } |
| 624 | std::shared_ptr<Array> result = ::arrow::MakeArray(data); |
| 625 | return std::make_shared<ChunkedArray>(result); |
| 626 | } |
| 627 | |
| 628 | Status BuildArray(int64_t length_upper_bound, |
| 629 | std::shared_ptr<ChunkedArray>* out) override { |