| 64 | } |
| 65 | |
| 66 | String 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 | |
| 91 | static std::pair<DataTypePtr, DataTypeCustomDescPtr> create(const ASTPtr & arguments) |
no test coverage detected