| 190 | } |
| 191 | |
| 192 | void AddColumnIndices(const SchemaField& schema_field, |
| 193 | std::vector<int>* column_projection) { |
| 194 | if (schema_field.is_leaf()) { |
| 195 | column_projection->push_back(schema_field.column_index); |
| 196 | } else { |
| 197 | // The following ensure that complex types, e.g. struct, are materialized. |
| 198 | for (const auto& child : schema_field.children) { |
| 199 | AddColumnIndices(child, column_projection); |
| 200 | } |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | Status ResolveOneFieldRef( |
| 205 | const SchemaManifest& manifest, const FieldRef& field_ref, |
no test coverage detected