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

Function InitUnmaterializedTable

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 4

get_schemaMethod · 0.80
sizeMethod · 0.45
num_fieldsMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected