Skip to content

Commit 5abca62

Browse files
committed
up
1 parent fa94338 commit 5abca62

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/Interpreters/Squashing.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,12 @@ Chunk Squashing::squash(std::vector<Chunk> && input_chunks, Chunk::ChunkInfoColl
147147
{
148148
/// IColumn::structureEquals is not implemented for deprecated object type, ignore it and always convert to non-sparse.
149149
bool has_object_deprecated = false;
150-
columns[j]->forEachSubcolumnRecursively([&has_object_deprecated](const auto & subcolumn)
150+
auto has_object_deprecated_lambda = [&has_object_deprecated](const auto & subcolumn)
151151
{
152152
has_object_deprecated = has_object_deprecated || subcolumn.getDataType() == TypeIndex::ObjectDeprecated;
153-
});
154-
mutable_columns[j]->forEachSubcolumnRecursively([&has_object_deprecated](const auto & subcolumn)
155-
{
156-
has_object_deprecated = has_object_deprecated || subcolumn.getDataType() == TypeIndex::ObjectDeprecated;
157-
});
153+
};
154+
columns[j]->forEachSubcolumnRecursively(has_object_deprecated);
155+
mutable_columns[j]->forEachSubcolumnRecursively(has_object_deprecated);
158156

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

0 commit comments

Comments
 (0)