MCPcopy Create free account
hub / github.com/apache/arrow / AssembleArray

Method AssembleArray

cpp/src/parquet/arrow/reader.cc:618–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

MakeArrayFunction · 0.50
idMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected