Addition to prev. revision [#CLICKHOUSE-2]

This commit is contained in:
Alexey Milovidov 2018-09-02 06:47:14 +03:00
parent afe3973325
commit ff13752d01

View File

@ -317,6 +317,9 @@ ColumnPtr Set::execute(const Block & block, bool negative) const
ColumnUInt8::Container & vec_res = res->getData();
vec_res.resize(block.safeGetByPosition(0).column->size());
if (vec_res.empty())
return res;
std::shared_lock lock(rwlock);
/// If the set is empty.