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

Function BuildNullArray

cpp/src/arrow/acero/asof_join_node_test.cc:142–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142void BuildNullArray(std::shared_ptr<Array>& empty, const std::shared_ptr<DataType>& type,
143 int64_t length) {
144 ASSERT_OK_AND_ASSIGN(auto builder, MakeBuilder(type, default_memory_pool()));
145 ASSERT_OK(builder->Reserve(length));
146 ASSERT_OK(builder->AppendNulls(length));
147 ASSERT_OK(builder->Finish(&empty));
148}
149
150void BuildZeroPrimitiveArray(std::shared_ptr<Array>& empty,
151 const std::shared_ptr<DataType>& type, int64_t length) {

Callers 1

MutateByKeyFunction · 0.85

Calls 3

ReserveMethod · 0.45
AppendNullsMethod · 0.45
FinishMethod · 0.45

Tested by

no test coverage detected