| 1738 | } |
| 1739 | |
| 1740 | void 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 | |
| 1748 | std::shared_ptr<Scalar> MakeUnionScalar(const SparseUnionType& type, int8_t type_code, |
| 1749 | std::shared_ptr<Scalar> field_value, |
no test coverage detected