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

Function getExceptionMessagePrefix

src/DataTypes/getLeastSupertype.cpp:45–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44template <typename DataTypes>
45String getExceptionMessagePrefix(const DataTypes & types)
46{
47 WriteBufferFromOwnString res;
48
49 bool first = true;
50 for (const auto & type : types)
51 {
52 if (!first)
53 res << ", ";
54 first = false;
55
56 res << typeToString(type);
57 }
58
59 return res.str();
60}
61
62template <LeastSupertypeOnError on_error, typename DataTypes>
63DataTypePtr throwOrReturn(const DataTypes & types, std::string_view message_suffix, int error_code)

Callers 1

throwOrReturnFunction · 0.70

Calls 2

typeToStringFunction · 0.70
strMethod · 0.45

Tested by

no test coverage detected