| 912 | #endif |
| 913 | |
| 914 | static CompositeTable InitUnmaterializedTable( |
| 915 | const std::shared_ptr<Schema>& schema, |
| 916 | const std::vector<std::unique_ptr<InputState>>& inputs, arrow::MemoryPool* pool) { |
| 917 | std::unordered_map<int, std::pair<int, int>> dst_to_src; |
| 918 | for (size_t i = 0; i < inputs.size(); i++) { |
| 919 | auto& input = inputs[i]; |
| 920 | for (int src = 0; src < input->get_schema()->num_fields(); src++) { |
| 921 | auto dst = input->MapSrcToDst(src); |
| 922 | if (dst.has_value()) { |
| 923 | dst_to_src[dst.value()] = std::make_pair(static_cast<int>(i), src); |
| 924 | } |
| 925 | } |
| 926 | } |
| 927 | return CompositeTable{schema, inputs.size(), dst_to_src, pool}; |
| 928 | } |
| 929 | }; |
| 930 | |
| 931 | // TODO: Currently, AsofJoinNode uses 64-bit hashing which leads to a non-negligible |
no test coverage detected