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

Function CheckGetNullUnionScalar

cpp/src/arrow/scalar_test.cc:1815–1821  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1813}
1814
1815void CheckGetNullUnionScalar(const Array& arr, int64_t index) {
1816 ASSERT_OK_AND_ASSIGN(auto scalar, arr.GetScalar(index));
1817 ASSERT_TRUE(scalar->Equals(*MakeNullScalar(arr.type())));
1818
1819 ASSERT_FALSE(scalar->is_valid);
1820 ASSERT_FALSE(checked_cast<const UnionScalar&>(*scalar).child_value()->is_valid);
1821}
1822
1823std::shared_ptr<Scalar> MakeUnionScalar(const SparseUnionType& type, int8_t type_code,
1824 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