mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
impl
This commit is contained in:
parent
742f1eb41e
commit
c998df6c8c
@ -0,0 +1,2 @@
|
||||
Order: a ASC, b ASC
|
||||
ReadType: InOrder
|
@ -0,0 +1,24 @@
|
||||
CREATE TABLE test
|
||||
(
|
||||
a UInt64,
|
||||
b UInt64
|
||||
)
|
||||
ENGINE = MergeTree
|
||||
ORDER BY (a, b);
|
||||
|
||||
INSERT INTO test SELECT number, number FROM numbers_mt(1e6);
|
||||
|
||||
set enable_analyzer = 1;
|
||||
|
||||
SELECT trimBoth(replaceRegexpAll(explain, '__table1.', ''))
|
||||
FROM
|
||||
(
|
||||
EXPLAIN actions = 1
|
||||
SELECT count(*)
|
||||
FROM test
|
||||
GROUP BY
|
||||
b,
|
||||
a
|
||||
SETTINGS optimize_aggregation_in_order = 1
|
||||
)
|
||||
WHERE explain LIKE '%Order%';
|
Loading…
Reference in New Issue
Block a user