Add assert

This commit is contained in:
Alexey Milovidov 2021-01-16 11:30:35 +03:00
parent 45380d45c8
commit b25e334313

View File

@ -212,6 +212,7 @@ public:
data_type->serializeAsText(*array_column, 0, ostr, FormatSettings{});
/// ostr is guaranteed to be at least '[]', i.e. size is at least 2 and 2 only if ostr.str() == '[]'
assert(ostr.str().size() >= 2);
return '{' + std::string(ostr.str().begin() + 1, ostr.str().end() - 1) + '}';
}