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

Function CheckGetNullUnionScalar

cpp/src/arrow/scalar_test.cc:1740–1746  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1738}
1739
1740void CheckGetNullUnionScalar(const Array& arr, int64_t index) {
1741 ASSERT_OK_AND_ASSIGN(auto scalar, arr.GetScalar(index));
1742 ASSERT_TRUE(scalar->Equals(*MakeNullScalar(arr.type())));
1743
1744 ASSERT_FALSE(scalar->is_valid);
1745 ASSERT_FALSE(checked_cast<const UnionScalar&>(*scalar).child_value()->is_valid);
1746}
1747
1748std::shared_ptr<Scalar> MakeUnionScalar(const SparseUnionType& type, int8_t type_code,
1749 std::shared_ptr<Scalar> field_value,

Callers 1

TEST_FFunction · 0.85

Calls 3

MakeNullScalarFunction · 0.85
EqualsMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected