mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 06:01:57 +00:00
fix tests
This commit is contained in:
parent
fedf1f5dd2
commit
c38caafe93
@ -81,7 +81,7 @@ void PartialSortingTransform::transform(Chunk & chunk)
|
||||
|
||||
sortBlock(block, description, limit);
|
||||
|
||||
if (limit && limit < rows_num &&
|
||||
if (limit && limit < block.rows() &&
|
||||
(threshold_block_columns.empty() || less(block_columns, limit - 1, threshold_block_columns, limit - 1, description)))
|
||||
{
|
||||
threshold_block = block.cloneWithColumns(block.getColumns());
|
||||
|
Loading…
Reference in New Issue
Block a user