MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / formatTypeMap

Function formatTypeMap

src/Interpreters/TableJoin.cpp:103–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101{
102
103std::string formatTypeMap(const TableJoin::NameToTypeMap & target, const TableJoin::NameToTypeMap & source)
104{
105 std::vector<std::string> text;
106 for (const auto & [k, v] : target)
107 {
108 auto src_type_it = source.find(k);
109 std::string src_type_name = src_type_it != source.end() ? src_type_it->second->getName() : "";
110 text.push_back(fmt::format("{} : {} -> {}", k, src_type_name, v->getName()));
111 }
112 return fmt::format("{}", fmt::join(text, ", "));
113}
114
115}
116

Callers 1

Calls 5

formatFunction · 0.70
findMethod · 0.45
endMethod · 0.45
getNameMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected