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

Method getName

src/DataTypes/DataTypeCustomSimpleAggregateFunction.cpp:66–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66String DataTypeCustomSimpleAggregateFunction::getName() const
67{
68 WriteBufferFromOwnString stream;
69 stream << "SimpleAggregateFunction(" << function->getName();
70
71 if (!parameters.empty())
72 {
73 stream << "(";
74 for (size_t i = 0; i < parameters.size(); ++i)
75 {
76 if (i)
77 stream << ", ";
78 stream << applyVisitor(FieldVisitorToString(), parameters[i]);
79 }
80 stream << ")";
81 }
82
83 for (const auto & argument_type : argument_types)
84 stream << ", " << argument_type->getName();
85
86 stream << ")";
87 return stream.str();
88}
89
90
91static std::pair<DataTypePtr, DataTypeCustomDescPtr> create(const ASTPtr & arguments)

Callers 3

createFunction · 0.45
getFunctionNameMethod · 0.45

Calls 5

applyVisitorFunction · 0.85
emptyMethod · 0.45
sizeMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected