mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
fix mistake in MergeTreeDataSelectExecutor
This commit is contained in:
parent
90a121cc1e
commit
dea444b69c
@ -912,7 +912,7 @@ Pipes MergeTreeDataSelectExecutor::spreadMarkRangesAmongStreamsWithOrder(
|
||||
RangesInDataPart part = parts.back();
|
||||
parts.pop_back();
|
||||
|
||||
size_t & marks_in_part = sum_marks_in_parts.front();
|
||||
size_t & marks_in_part = sum_marks_in_parts.back();
|
||||
|
||||
/// We will not take too few rows from a part.
|
||||
if (marks_in_part >= min_marks_for_concurrent_read &&
|
||||
|
@ -0,0 +1 @@
|
||||
10000000
|
7
dbms/tests/queries/0_stateless/01079_order_by_pk.sql
Normal file
7
dbms/tests/queries/0_stateless/01079_order_by_pk.sql
Normal file
@ -0,0 +1,7 @@
|
||||
DROP TABLE IF EXISTS mt_pk;
|
||||
|
||||
CREATE TABLE mt_pk ENGINE = MergeTree PARTITION BY d ORDER BY x
|
||||
AS SELECT toDate(number % 32) AS d, number AS x FROM system.numbers LIMIT 10000010;
|
||||
SELECT x FROM mt_pk ORDER BY x ASC LIMIT 10000000, 1;
|
||||
|
||||
DROP TABLE mt_pk;
|
Loading…
Reference in New Issue
Block a user