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

Method GetIndicesOfOnKey

cpp/src/arrow/acero/asof_join_node.cc:1339–1353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 3

ARROW_ASSIGN_OR_RAISEFunction · 0.70
InvalidFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected