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

Function MakeZeroLengthArray

python/pyarrow/src/arrow/python/arrow_to_pandas.cc:1775–1781  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1773};
1774
1775Status MakeZeroLengthArray(const std::shared_ptr<DataType>& type,
1776 std::shared_ptr<Array>* out) {
1777 std::unique_ptr<ArrayBuilder> builder;
1778 RETURN_NOT_OK(MakeBuilder(default_memory_pool(), type, &builder));
1779 RETURN_NOT_OK(builder->Resize(0));
1780 return builder->Finish(out);
1781}
1782
1783bool NeedDictionaryUnification(const ChunkedArray& data) {
1784 if (data.num_chunks() < 2) {

Callers 1

TransferSingleMethod · 0.85

Calls 4

default_memory_poolFunction · 0.85
MakeBuilderFunction · 0.50
ResizeMethod · 0.45
FinishMethod · 0.45

Tested by

no test coverage detected