| 790 | }; |
| 791 | |
| 792 | struct SparseImpl : UnionImpl { |
| 793 | using UnionImpl::UnionImpl; |
| 794 | |
| 795 | void operator()(const Array& array, int64_t index, std::ostream* os) { |
| 796 | const auto& union_array = checked_cast<const SparseUnionArray&>(array); |
| 797 | DoFormat(union_array, index, index, os); |
| 798 | } |
| 799 | }; |
| 800 | |
| 801 | struct DenseImpl : UnionImpl { |
| 802 | using UnionImpl::UnionImpl; |