MCPcopy Create free account
hub / github.com/apache/arrow / AddColumnIndices

Function AddColumnIndices

cpp/src/arrow/dataset/file_parquet.cc:192–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192void 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
204Status ResolveOneFieldRef(
205 const SchemaManifest& manifest, const FieldRef& field_ref,

Callers 1

ResolveOneFieldRefFunction · 0.85

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected