Update src/Columns/ColumnDynamic.cpp

Co-authored-by: Dmitry Novik <mrnovikd@gmail.com>
This commit is contained in:
Kruglov Pavel 2024-08-23 15:02:43 +02:00 committed by GitHub
parent 1165ae756d
commit 2b20b2d4de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1181,7 +1181,7 @@ void ColumnDynamic::takeDynamicStructureFromSourceColumns(const Columns & source
/// Check if the number of all dynamic types exceeds the limit.
if (!canAddNewVariants(0, all_variants.size()))
{
/// Create list of variants with their sizes and sort it.
/// Create a list of variants with their sizes and names and then sort it.
std::vector<std::tuple<size_t, String, DataTypePtr>> variants_with_sizes;
variants_with_sizes.reserve(all_variants.size());
for (const auto & variant : all_variants)