| 91 | } |
| 92 | |
| 93 | static inline Result<std::vector<int>> GetIncludedFields( |
| 94 | const Schema& schema, const std::vector<FieldRef>& materialized_fields) { |
| 95 | std::vector<int> included_fields; |
| 96 | |
| 97 | for (const auto& ref : materialized_fields) { |
| 98 | ARROW_ASSIGN_OR_RAISE(auto match, ref.FindOneOrNone(schema)); |
| 99 | if (match.indices().empty()) continue; |
| 100 | |
| 101 | included_fields.push_back(match.indices()[0]); |
| 102 | } |
| 103 | |
| 104 | return included_fields; |
| 105 | } |
| 106 | |
| 107 | static inline Result<ipc::IpcReadOptions> GetReadOptions( |
| 108 | const Schema& schema, const FileFormat& format, const ScanOptions& scan_options) { |
no test coverage detected