| 3274 | } |
| 3275 | |
| 3276 | std::shared_ptr<DataType> sparse_union(FieldVector child_fields, |
| 3277 | std::vector<int8_t> type_codes) { |
| 3278 | if (type_codes.empty()) { |
| 3279 | type_codes = internal::Iota<int8_t>(0, child_fields.size()); |
| 3280 | } |
| 3281 | return std::make_shared<SparseUnionType>(std::move(child_fields), |
| 3282 | std::move(type_codes)); |
| 3283 | } |
| 3284 | std::shared_ptr<DataType> dense_union(FieldVector child_fields, |
| 3285 | std::vector<int8_t> type_codes) { |
| 3286 | if (type_codes.empty()) { |