| 70 | namespace internal { |
| 71 | |
| 72 | bool IsNullSparseUnion(const ArrayData& data, int64_t i) { |
| 73 | auto* union_type = checked_cast<const SparseUnionType*>(data.type.get()); |
| 74 | const auto* types = reinterpret_cast<const int8_t*>(data.buffers[1]->data()); |
| 75 | const int child_id = union_type->child_ids()[types[data.offset + i]]; |
| 76 | return data.child_data[child_id]->IsNull(i); |
| 77 | } |
| 78 | |
| 79 | bool IsNullDenseUnion(const ArrayData& data, int64_t i) { |
| 80 | auto* union_type = checked_cast<const DenseUnionType*>(data.type.get()); |