| 1616 | namespace asofjoin { |
| 1617 | |
| 1618 | Result<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 | |