bkietz commented on a change in pull request #10397: URL: https://github.com/apache/arrow/pull/10397#discussion_r660117770
########## File path: cpp/src/arrow/type.cc ########## @@ -1195,6 +1195,10 @@ std::string FieldRef::ToString() const { } std::vector<FieldPath> FieldRef::FindAll(const Schema& schema) const { + if (auto name = this->name()) { + return internal::MapVector([](int i) { return FieldPath{i}; }, + schema.GetAllFieldIndices(*name)); + } Review comment: This is tested https://github.com/bkietz/arrow/blob/1b8bedcbf4b794858228c85644248300b64ce5a4/cpp/src/arrow/type_test.cc#L391-L392 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org