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

Function MakeZeroLengthArray

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

Source from the content-addressed store, hash-verified

1797};
1798
1799Status MakeZeroLengthArray(const std::shared_ptr<DataType>& type,
1800 std::shared_ptr<Array>* out) {
1801 std::unique_ptr<ArrayBuilder> builder;
1802 RETURN_NOT_OK(MakeBuilder(default_memory_pool(), type, &builder));
1803 RETURN_NOT_OK(builder->Resize(0));
1804 return builder->Finish(out);
1805}
1806
1807bool NeedDictionaryUnification(const ChunkedArray& data) {
1808 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