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

Function MakeOutputSchema

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

Source from the content-addressed store, hash-verified

1616namespace asofjoin {
1617
1618Result<std::shared_ptr<Schema>> MakeOutputSchema(
1619 const std::vector<std::shared_ptr<Schema>>& input_schema,
1620 const std::vector<AsofJoinKeys>& input_keys) {
1621 ARROW_ASSIGN_OR_RAISE(std::vector<col_index_t> indices_of_on_key,
1622 AsofJoinNode::GetIndicesOfOnKey(input_schema, input_keys));
1623 ARROW_ASSIGN_OR_RAISE(std::vector<std::vector<col_index_t>> indices_of_by_key,
1624 AsofJoinNode::GetIndicesOfByKey(input_schema, input_keys));
1625 return AsofJoinNode::MakeOutputSchema(input_schema, indices_of_on_key,
1626 indices_of_by_key);
1627}
1628
1629} // namespace asofjoin
1630

Callers 4

MakeMethod · 0.70
MakeMethod · 0.70
TESTFunction · 0.70
ASSERT_OK_AND_ASSIGNFunction · 0.70

Calls 1

ARROW_ASSIGN_OR_RAISEFunction · 0.70

Tested by 2

TESTFunction · 0.56
ASSERT_OK_AND_ASSIGNFunction · 0.56