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

Function MakeSpecificNullScalar

cpp/src/arrow/scalar_test.cc:1920–1925  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1918}
1919
1920std::shared_ptr<Scalar> MakeSpecificNullScalar(const DenseUnionType& type,
1921 int field_index) {
1922 int8_t type_code = type.type_codes()[field_index];
1923 auto value = MakeNullScalar(type.field(field_index)->type());
1924 return std::make_shared<DenseUnionScalar>(value, type_code, type.GetSharedPtr());
1925}
1926
1927std::shared_ptr<Scalar> MakeSpecificNullScalar(const SparseUnionType& type,
1928 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