Fix pretty type name

This commit is contained in:
Kruglov Pavel 2024-01-08 22:02:40 +01:00 committed by GitHub
parent 3de5b27c48
commit 21e4b453df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,17 +71,17 @@ std::string DataTypeVariant::doGetPrettyName(size_t indent) const
{
size_t size = variants.size();
WriteBufferFromOwnString s;
s << "Variant(\n";
s << "Variant(";
for (size_t i = 0; i != size; ++i)
{
if (i != 0)
s << ",\n";
s << ", ";
s << fourSpaceIndent(indent + 1) << variants[i]->getPrettyName(indent + 1);
s << variants[i]->getPrettyName(indent);
}
s << '\n' << fourSpaceIndent(indent) << ')';
s << ')';
return s.str();
}