mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Merge pull request #41417 from nickitat/stabilize_uniq_sorted
Stabilize uniq stored
This commit is contained in:
commit
2f6c5c8f75
@ -5,7 +5,7 @@
|
|||||||
a String,
|
a String,
|
||||||
b_count AggregateFunction(uniq, UInt64)
|
b_count AggregateFunction(uniq, UInt64)
|
||||||
) Engine=MergeTree partition by tuple()
|
) Engine=MergeTree partition by tuple()
|
||||||
ORDER by tuple()
|
ORDER by a
|
||||||
SETTINGS index_granularity = 1024;
|
SETTINGS index_granularity = 1024;
|
||||||
</create_query>
|
</create_query>
|
||||||
|
|
||||||
@ -15,7 +15,7 @@
|
|||||||
a String,
|
a String,
|
||||||
b_count AggregateFunction(uniq, String)
|
b_count AggregateFunction(uniq, String)
|
||||||
) Engine=MergeTree partition by tuple()
|
) Engine=MergeTree partition by tuple()
|
||||||
ORDER by tuple()
|
ORDER by a
|
||||||
SETTINGS index_granularity = 1024;
|
SETTINGS index_granularity = 1024;
|
||||||
</create_query>
|
</create_query>
|
||||||
|
|
||||||
@ -28,7 +28,7 @@
|
|||||||
SELECT a, uniqState(b) b_count
|
SELECT a, uniqState(b) b_count
|
||||||
FROM
|
FROM
|
||||||
(
|
(
|
||||||
SELECT toString(rand() % 1000) a, toString(number % 10000) b
|
SELECT toString(intDiv(number, 20000)) a, toString(number % 10000) b
|
||||||
FROM numbers_mt(20000000)
|
FROM numbers_mt(20000000)
|
||||||
)
|
)
|
||||||
GROUP BY a
|
GROUP BY a
|
||||||
|
Loading…
Reference in New Issue
Block a user