mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 01:00:48 +00:00
Add assert
This commit is contained in:
parent
45380d45c8
commit
b25e334313
@ -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) + '}';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user