Skip to content

Commit 2bea36c

Browse files
committed
fix
1 parent 5abca62 commit 2bea36c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Interpreters/Squashing.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,14 @@ Chunk Squashing::squash(std::vector<Chunk> && input_chunks, Chunk::ChunkInfoColl
146146
for (size_t j = 0; j != num_columns; ++j)
147147
{
148148
/// IColumn::structureEquals is not implemented for deprecated object type, ignore it and always convert to non-sparse.
149-
bool has_object_deprecated = false;
149+
bool has_object_deprecated = columns[j]->getDataType() == TypeIndex::ObjectDeprecated ||
150+
mutable_columns[j]->getDataType() == TypeIndex::ObjectDeprecated;
150151
auto has_object_deprecated_lambda = [&has_object_deprecated](const auto & subcolumn)
151152
{
152153
has_object_deprecated = has_object_deprecated || subcolumn.getDataType() == TypeIndex::ObjectDeprecated;
153154
};
154-
columns[j]->forEachSubcolumnRecursively(has_object_deprecated);
155-
mutable_columns[j]->forEachSubcolumnRecursively(has_object_deprecated);
155+
columns[j]->forEachSubcolumnRecursively(has_object_deprecated_lambda);
156+
mutable_columns[j]->forEachSubcolumnRecursively(has_object_deprecated_lambda);
156157

157158
/// Need to check if there are any sparse columns in subcolumns,
158159
/// since `IColumn::isSparse` is not recursive but sparse column can be inside a tuple, for example.

0 commit comments

Comments
 (0)