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

Method for

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

Source from the content-addressed store, hash-verified

727 const auto& type = checked_cast<::arrow::FixedSizeListType&>(*field()->type());
728 const int32_t* offsets = reinterpret_cast<const int32_t*>(data->buffers[1]->data());
729 for (int x = 1; x <= data->length; x++) {
730 int32_t size = offsets[x] - offsets[x - 1];
731 if (size != type.list_size()) {
732 return Status::Invalid("Expected all lists to be of size=", type.list_size(),
733 " but index ", x, " had size=", size);
734 }
735 }
736 data->buffers.resize(1);
737 std::shared_ptr<Array> result = ::arrow::MakeArray(data);
738 return std::make_shared<ChunkedArray>(result);

Callers 9

slice_bitmap_bufferMethod · 0.80
FileReaderClass · 0.80
initializeMethod · 0.80
initializeMethod · 0.80
consumeMethod · 0.80
read_bitmapMethod · 0.80
read_valuesMethod · 0.80
convert_bufferMethod · 0.80

Calls 2

InvalidFunction · 0.50
list_sizeMethod · 0.45

Tested by 2

convert_bufferMethod · 0.64