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

Method GetByKeySize

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

Source from the content-addressed store, hash-verified

1323 }
1324
1325 static Result<size_t> GetByKeySize(
1326 const std::vector<asofjoin::AsofJoinKeys>& input_keys) {
1327 size_t n_by = 0;
1328 for (size_t i = 0; i < input_keys.size(); ++i) {
1329 const auto& by_key = input_keys[i].by_key;
1330 if (i == 0) {
1331 n_by = by_key.size();
1332 } else if (n_by != by_key.size()) {
1333 return Status::Invalid("inconsistent size of by-key across inputs");
1334 }
1335 }
1336 return n_by;
1337 }
1338
1339 static Result<std::vector<col_index_t>> GetIndicesOfOnKey(
1340 const std::vector<std::shared_ptr<Schema>>& input_schema,

Callers

nothing calls this directly

Calls 2

InvalidFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected