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

Function MakeSpecificNullScalar

cpp/src/arrow/scalar_test.cc:1860–1865  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1858}
1859
1860std::shared_ptr<Scalar> MakeSpecificNullScalar(const DenseUnionType& type,
1861 int field_index) {
1862 int8_t type_code = type.type_codes()[field_index];
1863 auto value = MakeNullScalar(type.field(field_index)->type());
1864 return std::make_shared<DenseUnionScalar>(value, type_code, type.GetSharedPtr());
1865}
1866
1867std::shared_ptr<Scalar> MakeSpecificNullScalar(const SparseUnionType& type,
1868 int field_index) {

Callers 1

SpecificNullMethod · 0.85

Calls 5

MakeNullScalarFunction · 0.85
emplace_backMethod · 0.80
typeMethod · 0.45
fieldMethod · 0.45
num_fieldsMethod · 0.45

Tested by

no test coverage detected