| 355 | } |
| 356 | |
| 357 | Status VisitField(FieldPosition field_pos, ArrayData* data) { |
| 358 | const DataType* type = data->type.get(); |
| 359 | if (type->id() == Type::EXTENSION) { |
| 360 | type = checked_cast<const ExtensionType&>(*type).storage_type().get(); |
| 361 | } |
| 362 | if (type->id() == Type::DICTIONARY) { |
| 363 | ARROW_ASSIGN_OR_RAISE(const int64_t id, |
| 364 | memo_.fields().GetFieldId(field_pos.path())); |
| 365 | ARROW_ASSIGN_OR_RAISE(data->dictionary, memo_.GetDictionary(id, pool_)); |
| 366 | // Resolve nested dictionary data |
| 367 | RETURN_NOT_OK(VisitField(field_pos, data->dictionary.get())); |
| 368 | } |
| 369 | // Resolve child data |
| 370 | return VisitChildren(data->child_data, field_pos); |
| 371 | } |
| 372 | }; |
| 373 | |
| 374 | } // namespace |
nothing calls this directly
no test coverage detected