This commit is contained in:
Nikita Taranov 2024-11-10 15:06:02 +01:00
parent 56f6062bd8
commit 64244250c2

View File

@ -302,6 +302,8 @@ struct ScatteredBlock : private boost::noncopyable
/// Cut first `num_rows` rows from `block` in place and returns block with remaining rows
ScatteredBlock cut(size_t num_rows)
{
SCOPE_EXIT(filterBySelector());
if (num_rows >= rows())
return ScatteredBlock{Block{}};