| 100 | } |
| 101 | |
| 102 | void ImportField(const FieldPosition& pos, const Field& field) { |
| 103 | const DataType* type = field.type().get(); |
| 104 | if (type->id() == Type::EXTENSION) { |
| 105 | type = checked_cast<const ExtensionType&>(*type).storage_type().get(); |
| 106 | } |
| 107 | if (type->id() == Type::DICTIONARY) { |
| 108 | InsertPath(pos); |
| 109 | // Import nested dictionaries |
| 110 | ImportFields(pos, |
| 111 | checked_cast<const DictionaryType&>(*type).value_type()->fields()); |
| 112 | } else { |
| 113 | ImportFields(pos, type->fields()); |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | void InsertPath(const FieldPosition& pos) { |
| 118 | const int64_t id = field_path_to_id.size(); |
nothing calls this directly
no test coverage detected