Skip to content

Commit b7bd996

Browse files
committed
fix data race
1 parent a83da58 commit b7bd996

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Interpreters/Squashing.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ Chunk Squashing::squash(std::vector<Chunk> && input_chunks, Chunk::ChunkInfoColl
148148
/// IColumn::structureEquals is not implemented for deprecated object type, ignore it and always convert to non-sparse.
149149
bool has_object_deprecated = columns[j]->getDataType() == TypeIndex::ObjectDeprecated ||
150150
mutable_columns[j]->getDataType() == TypeIndex::ObjectDeprecated;
151-
auto has_object_deprecated_lambda = [&has_object_deprecated](const auto & subcolumn)
151+
/// we need to use here template lambda because type T has to be different in each following call
152+
auto has_object_deprecated_lambda = [&has_object_deprecated]<typename T>(const T & subcolumn)
152153
{
153154
has_object_deprecated = has_object_deprecated || subcolumn.getDataType() == TypeIndex::ObjectDeprecated;
154155
};

0 commit comments

Comments
 (0)