| 1813 | } |
| 1814 | |
| 1815 | void 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 | |
| 1823 | std::shared_ptr<Scalar> MakeUnionScalar(const SparseUnionType& type, int8_t type_code, |
| 1824 | std::shared_ptr<Scalar> field_value, |
no test coverage detected