| 1337 | } |
| 1338 | |
| 1339 | static Result<std::vector<col_index_t>> GetIndicesOfOnKey( |
| 1340 | const std::vector<std::shared_ptr<Schema>>& input_schema, |
| 1341 | const std::vector<asofjoin::AsofJoinKeys>& input_keys) { |
| 1342 | if (input_schema.size() != input_keys.size()) { |
| 1343 | return Status::Invalid("mismatching number of input schema and keys"); |
| 1344 | } |
| 1345 | size_t n_input = input_schema.size(); |
| 1346 | std::vector<col_index_t> indices_of_on_key(n_input); |
| 1347 | for (size_t i = 0; i < n_input; ++i) { |
| 1348 | const auto& on_key = input_keys[i].on_key; |
| 1349 | ARROW_ASSIGN_OR_RAISE(indices_of_on_key[i], |
| 1350 | FindColIndex(*input_schema[i], on_key, "on")); |
| 1351 | } |
| 1352 | return indices_of_on_key; |
| 1353 | } |
| 1354 | |
| 1355 | static Result<std::vector<std::vector<col_index_t>>> GetIndicesOfByKey( |
| 1356 | const std::vector<std::shared_ptr<Schema>>& input_schema, |
nothing calls this directly
no test coverage detected